forked from lftraining/LFS261-example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
48 lines (46 loc) · 854 Bytes
/
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
volumes:
db-data:
networks:
instavote:
driver: bridge
services:
vote:
image: okapetanios/vote:latest
ports:
- 5000:80
depends_on:
- redis
networks:
- instavote
redis:
image: redis:alpine
networks:
- instavote
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes:
- "db-data:/var/lib/postgresql/data"
- "./healthchecks:/healthchecks"
healthcheck:
test: /healthchecks/postgres.sh
interval: "5s"
networks:
- instavote
result:
image: okapetanios/result:latest
ports:
- 5001:80
depends_on:
- db
networks:
- instavote
worker:
image: okapetanios/worker:latest
depends_on:
- redis
- db
networks:
- instavote