forked from dockersamples/example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-demo.yml
48 lines (47 loc) · 991 Bytes
/
docker-compose-demo.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
version: '2'
services:
result:
image: 'containers101/result:update-build'
#build: ./result
command: node server.js
ports:
- "80"
links:
- "db:db"
environment:
- OPTION_A=$VOTING_OPTION_A
- OPTION_B=$VOTING_OPTION_B
moshe:
image: 'containers101/result:update-build'
#build: ./result
#command: node server.js
ports:
- "2222"
links:
- "db:db"
environment:
- OPTION_A=$VOTING_OPTION_A
- OPTION_B=$VOTING_OPTION_B
worker:
build: ./worker
image: 'containers101/worker:update-build'
links:
- "db:db"
- "redis:redis"
redis:
image: 'redis:alpine'
ports:
- "6379"
vote:
build: ./vote
image: 'containers101/vote:update-build'
command: python app.py
ports:
- "80"
links:
- "redis:redis"
environment:
- OPTION_A=$VOTING_OPTION_A
- OPTION_B=$VOTING_OPTION_B
db:
image: 'postgres:9.4'