-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (75 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
80 lines (75 loc) · 1.78 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
networks:
colocus-network:
driver: bridge
volumes:
postgres_data:
services:
db:
image: postgres:18
container_name: colocus-db
env_file: .env
restart: always
volumes:
- postgres_data:/var/lib/postgresql
- ./bin/init-postgres.sh:/docker-entrypoint-initdb.d/init-db.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- colocus-network
redis:
image: redis:8
container_name: colocus-redis
env_file: .env
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
networks:
- colocus-network
django:
image: ghcr.io/statgen/colocus:latest
container_name: colocus-django
restart: always
env_file: .env
volumes:
- "${DATA_PATH}:/data:ro"
ports:
- "${UVICORN_PORT}:${UVICORN_PORT}"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${UVICORN_PORT}/api/v1/datasets/?page_size=1"]
interval: 5s
timeout: 5s
retries: 5
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
networks:
- colocus-network
ui:
image: ghcr.io/statgen/colocus-ui-vue3:latest
container_name: colocus-ui
restart: always
env_file: .env
volumes:
- ./etc/nginx/colocus.conf.template:/etc/nginx/templates/colocus.conf.template
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${UI_PORT}"]
interval: 5s
timeout: 5s
retries: 5
ports:
- "${UI_PORT}:${UI_PORT}"
depends_on:
django:
condition: service_healthy
db:
condition: service_healthy
networks:
- colocus-network