forked from BalaMuragan92/example-voting-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 903 Bytes
/
docker-compose.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
49
version: '3.3'
services:
redis:
image: redis
network_mode: bridge
restart: always
container_name: redis
ports:
- "6379:6379"
db:
image: postgres:9.4
network_mode: bridge
restart: always
container_name: db
environment:
POSTGRES_HOST_AUTH_METHOD: "trust"
ports:
- "5432:5432"
py-vote:
image: karthikg99/python-voter-app
network_mode: bridge
restart: always
container_name: py-vote
ports:
- "5000:80"
links:
- "redis:redis"
node-result:
image: karthikg99/node-result-app
network_mode: bridge
restart: always
container_name: node-result
ports:
- "5001:80"
links:
- "db:db"
java-worker:
image: karthikg99/java-worker-app
network_mode: bridge
restart: always
container_name: java-worker
links:
- "redis:redis"
- "db:db"