-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (55 loc) · 1.14 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
59
version: '3.8'
services:
db:
image: postgres
restart: unless-stopped
env_file: .env.docker
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: pg_isready
start_period: 5s
interval: 30s
timeout: 5s
retries: 3
worker:
image: mtsrus/syncmaster-worker
restart: unless-stopped
build:
dockerfile: docker/Dockerfile.worker
context: .
network: host
env_file: .env.docker
backend:
image: mtsrus/syncmaster-backend
restart: unless-stopped
build:
dockerfile: docker/Dockerfile.backend
context: .
network: host
ports:
- 8000:8000
depends_on:
db:
condition: service_healthy
rabbitmq:
condition: service_healthy
env_file: .env.docker
rabbitmq:
image: rabbitmq
restart: unless-stopped
ports:
- 5672:5672
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
start_period: 5s
interval: 30s
timeout: 5s
retries: 3
volumes:
postgres_data:
rabbitmq_data: