-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
60 lines (55 loc) · 1.09 KB
/
docker-compose.prod.yml
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
services:
web:
image: annotaid/backend
build: !reset null
restart: always
healthcheck:
test: wget --no-verbose -O /dev/null --tries=1 http://localhost:8080/ || exit 1
interval: 1s
timeout: 5s
depends_on:
- redis
- celery_worker
- postgis
networks:
- annotaid-be
redis:
image: redis:alpine3.18
restart: always
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- annotaid-be
celery_worker:
image: annotaid/worker
build: !reset null
restart: always
depends_on:
- redis
- postgis
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
- annotaid-be
postgis:
image: postgis/postgis:16-master
env_file:
- ../.env
ports:
- 5432:5432
volumes:
- postgis_data:/var/lib/postgresql/data
networks:
- annotaid-be
networks:
annotaid-be:
volumes:
postgis_data: