-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.33 KB
/
docker-compose.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
version: "3.7"
services:
queue:
image: bitnami/rabbitmq:3.9
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: "5s"
timeout: "3s"
retries: 5
start_period: "5s"
db:
image: postgres:12
healthcheck:
test: ["CMD", "pg_isready", "-U", "recotem_user", "-d", "recotem"]
interval: "5s"
timeout: "3s"
retries: 5
start_period: "5s"
volumes:
- db-data:/var/lib/postgresql/data/pgdata
env_file:
- envs/production.env
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
backend:
depends_on:
db:
condition: service_healthy
queue:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:80/api/ping/ || exit 1"]
interval: "10s"
timeout: "5s"
retries: 2
start_period: "5s"
volumes:
- data-location:/app/data
- ./model:/opt/app/model
env_file:
- envs/production.env
celery_worker:
depends_on:
backend:
condition: service_started
image: ghcr.io/codelibs/recotem-worker:v0.1.0.alpha8
volumes:
- data-location:/app/data
env_file:
- envs/production.env
volumes:
data-location:
driver: local
db-data:
driver: local