This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (78 loc) · 1.77 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
services:
rabbitmq:
image: 'rabbitmq:3-management'
environment:
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD}
- RABBITMQ_DEFAULT_USER=admin
container_name: rabbitmq
hostname: rabbit
ports:
- 5672:5672
- 15672:15672
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=${PG_PASSWORD}
ports:
- 5432:5432
container_name: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: ./build/api.Dockerfile
ports:
- "80:8080"
env_file: ./.env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
lister:
build:
context: .
dockerfile: ./build/lister.Dockerfile
env_file: ./.env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
updater:
build:
context: .
dockerfile: ./build/updater.Dockerfile
env_file: ./.env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy
deleter:
build:
context: .
dockerfile: ./build/deleter.Dockerfile
env_file: ./.env
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
rabbitmq:
condition: service_healthy