-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
73 lines (64 loc) · 1.37 KB
/
docker-compose.yaml
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
version: '1'
services:
seed:
image: europe-west9-docker.pkg.dev/ue-nuage/voting-images/seed
build: ./seed-data
depends_on:
- vote
networks:
- front-tier
vote:
image: europe-west9-docker.pkg.dev/ue-nuage/voting-images/vote
build: ./vote
depends_on:
- redis
ports:
- "5000:5000"
networks:
- back-tier
- front-tier
redis:
image: "redis:latest"
volumes:
- ./healthchecks:/healthchecks
depends_on:
- worker
networks:
- back-tier
healthcheck:
test: [ "CMD","/healthchecks/redis.sh" ]
worker:
image: europe-west9-docker.pkg.dev/ue-nuage/voting-images/worker
build: ./worker
depends_on:
- db
networks:
- back-tier
db:
image: postgres
volumes:
- db-data:/var/lib/postgresql/data
- ./healthchecks:/healthchecks
networks:
- back-tier
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: ["CMD", "apt-get update && apt-get install -y curl && /healthchecks/postgres.sh"]
result:
image: europe-west9-docker.pkg.dev/ue-nuage/voting-images/result
build: ./result
ports:
- "4000:4000"
depends_on:
- db
networks:
- back-tier
- front-tier
networks:
front-tier:
back-tier:
volumes:
db-data: