-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (85 loc) · 1.66 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
84
85
version: "2.4"
services:
api:
container_name: campsite-api
build: services/api
ports:
- "1111:1111"
restart: always
depends_on:
postgres:
condition: service_healthy
auth:
condition: service_started
event:
condition: service_started
speaker:
condition: service_started
session:
condition: service_started
env_file:
- docker.env
networks:
- app
auth:
container_name: campsite-auth
build: services/auth
restart: always
depends_on:
postgres:
condition: service_healthy
env_file:
- docker.env
networks:
- app
speaker:
container_name: campsite-speaker
build: services/speaker
restart: always
env_file:
- docker.env
depends_on:
postgres:
condition: service_healthy
networks:
- app
event:
container_name: campsite-event
build: services/event
restart: always
depends_on:
postgres:
condition: service_healthy
env_file:
- docker.env
networks:
- app
session:
container_name: campsite-session
build: services/session
restart: always
env_file:
- docker.env
depends_on:
postgres:
condition: service_healthy
networks:
- app
postgres:
image: postgres:latest
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
networks:
- app
networks:
app:
driver: bridge