-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (50 loc) · 1.04 KB
/
docker-compose.yaml
File metadata and controls
50 lines (50 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
services:
postgres:
image: postgres:17
environment:
POSTGRES_DB: assets
POSTGRES_USER: assets
POSTGRES_PASSWORD: password
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U assets -d assets"]
interval: 5s
timeout: 5s
retries: 5
swift:
image: openstackswift/saio:latest
ports:
- "8080:8080"
volumes:
- swift-data:/srv
app:
build: .
env_file:
- path: .env
- path: .env.local
required: false
ports:
- "${PORT}:${PORT}"
volumes:
- .:/srv
- /srv/.venv
- /srv/node_modules
command: ["yarn", "start"]
entrypoint: []
depends_on:
postgres:
condition: service_healthy
swift:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT}/manager"]
interval: 5s
timeout: 5s
retries: 30
start_period: 30s
volumes:
postgres-data:
swift-data: