forked from lftraining/LFS261-example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (49 loc) · 906 Bytes
/
docker-compose.yaml
File metadata and controls
50 lines (49 loc) · 906 Bytes
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
volumes:
db-data:
networks:
instavote:
driver: bridge
services:
vote:
image: projectkmac/vote:latest
build: ./vote
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: projectkmac/result:latest
build: ./result
ports:
- 5001:80
depends_on:
- db
networks:
- instavote
worker:
image: projectkmac/worker:latest
build: ./worker
depends_on:
- redis
- db
networks:
- instavote