2017-01-24 02:44:16 +01:00
|
|
|
version: "3"
|
2016-11-15 23:56:00 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
vote:
|
|
|
|
build: ./vote
|
|
|
|
command: python app.py
|
|
|
|
volumes:
|
|
|
|
- ./vote:/app
|
|
|
|
ports:
|
|
|
|
- "5000:80"
|
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
result:
|
|
|
|
build: ./result
|
2018-01-04 11:46:57 +01:00
|
|
|
command: nodemon server.js
|
2016-11-15 23:56:00 +01:00
|
|
|
volumes:
|
|
|
|
- ./result:/app
|
|
|
|
ports:
|
|
|
|
- "5001:80"
|
|
|
|
- "5858:5858"
|
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
worker:
|
2017-01-15 22:25:58 +01:00
|
|
|
build:
|
|
|
|
context: ./worker
|
|
|
|
dockerfile: Dockerfile.j
|
2016-11-15 23:56:00 +01:00
|
|
|
networks:
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
container_name: redis
|
|
|
|
ports: ["6379"]
|
|
|
|
networks:
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:9.4
|
|
|
|
container_name: db
|
2020-02-19 20:44:32 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "postgres"
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
2016-11-15 23:56:00 +01:00
|
|
|
volumes:
|
|
|
|
- "db-data:/var/lib/postgresql/data"
|
|
|
|
networks:
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
front-tier:
|
2017-01-15 22:25:58 +01:00
|
|
|
back-tier:
|