forked from 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
52 lines (45 loc) · 765 Bytes
/
docker-compose.yaml
File metadata and controls
52 lines (45 loc) · 765 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
50
51
52
version: "3.8"
volumes:
db-data:
networks:
instavote:
driver: bridge
services:
vote:
image: cheloghm/vote:latest
build: ./vote
ports:
- 5002:80
depends_on:
- redis
networks:
- instavote
redis:
image: redis:alpine
networks:
- instavote
db:
image: postgres:9.4
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- instavote
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
result:
image: cheloghm/result:latest
build: ./vote
ports:
- 5003:4000
depends_on:
- db
networks:
- instavote
worker:
image: cheloghm/worker:latest
build: ./vote
depends_on:
- redis
- db
networks:
- instavote