2016-01-25 19:20:23 +01:00
|
|
|
version: "2"
|
2016-01-29 00:57:37 +01:00
|
|
|
|
2016-01-25 19:20:23 +01:00
|
|
|
services:
|
|
|
|
voting-app:
|
|
|
|
build: ./voting-app/.
|
|
|
|
volumes:
|
2016-01-29 00:57:37 +01:00
|
|
|
- ./voting-app:/app
|
2016-01-25 19:20:23 +01:00
|
|
|
ports:
|
|
|
|
- "5000:80"
|
2016-05-04 04:35:26 +02:00
|
|
|
links:
|
|
|
|
- redis
|
2016-01-29 00:57:37 +01:00
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
2015-11-15 20:59:29 +01:00
|
|
|
|
2016-01-29 00:57:37 +01:00
|
|
|
result-app:
|
|
|
|
build: ./result-app/.
|
|
|
|
volumes:
|
|
|
|
- ./result-app:/app
|
|
|
|
ports:
|
|
|
|
- "5001:80"
|
2016-05-04 04:35:26 +02:00
|
|
|
links:
|
|
|
|
- db
|
2016-01-29 00:57:37 +01:00
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
2015-11-15 20:59:29 +01:00
|
|
|
|
2016-01-25 19:20:23 +01:00
|
|
|
worker:
|
|
|
|
build: ./worker
|
2016-05-04 04:35:26 +02:00
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- redis
|
2016-01-29 00:57:37 +01:00
|
|
|
networks:
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
redis:
|
2016-04-25 20:28:21 +02:00
|
|
|
image: redis:alpine
|
2016-01-29 00:57:37 +01:00
|
|
|
ports: ["6379"]
|
|
|
|
networks:
|
|
|
|
- back-tier
|
2015-11-15 20:59:29 +01:00
|
|
|
|
2016-01-25 19:20:23 +01:00
|
|
|
db:
|
|
|
|
image: postgres:9.4
|
|
|
|
volumes:
|
2016-01-29 00:57:37 +01:00
|
|
|
- "db-data:/var/lib/postgresql/data"
|
|
|
|
networks:
|
|
|
|
- back-tier
|
2015-11-15 20:59:29 +01:00
|
|
|
|
2016-01-25 19:20:23 +01:00
|
|
|
volumes:
|
2016-01-29 00:57:37 +01:00
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
front-tier:
|
|
|
|
back-tier:
|