2017-01-24 02:44:16 +01:00
|
|
|
version: "3"
|
2016-01-29 00:57:37 +01:00
|
|
|
|
2016-01-25 19:20:23 +01:00
|
|
|
services:
|
2016-06-18 18:14:28 +02:00
|
|
|
vote:
|
|
|
|
build: ./vote
|
2016-06-18 06:13:51 +02:00
|
|
|
command: python app.py
|
2016-01-25 19:20:23 +01:00
|
|
|
volumes:
|
2016-06-18 18:14:28 +02:00
|
|
|
- ./vote:/app
|
2016-01-25 19:20:23 +01:00
|
|
|
ports:
|
|
|
|
- "5000:80"
|
2016-10-12 01:24:49 +02:00
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
2015-11-15 20:59:29 +01:00
|
|
|
|
2016-06-18 18:14:28 +02:00
|
|
|
result:
|
|
|
|
build: ./result
|
2017-11-29 19:43:31 +01:00
|
|
|
command: nodemon server.js
|
2016-06-18 19:04:44 +02:00
|
|
|
volumes:
|
2016-06-18 18:14:28 +02:00
|
|
|
- ./result:/app
|
2016-06-18 19:04:44 +02:00
|
|
|
ports:
|
|
|
|
- "5001:80"
|
|
|
|
- "5858:5858"
|
2016-10-12 01:24:49 +02:00
|
|
|
networks:
|
|
|
|
- front-tier
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
worker:
|
2017-04-07 21:33:22 +02:00
|
|
|
build:
|
|
|
|
context: ./worker
|
2017-10-01 13:36:10 +02:00
|
|
|
depends_on:
|
|
|
|
- "redis"
|
2019-08-25 22:50:48 +02:00
|
|
|
- "db"
|
2016-10-12 01:24:49 +02: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-16 05:45:28 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "postgres"
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
2016-10-12 01:24:49 +02:00
|
|
|
volumes:
|
|
|
|
- "db-data:/var/lib/postgresql/data"
|
|
|
|
networks:
|
|
|
|
- back-tier
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
front-tier:
|
2020-02-16 05:45:28 +01:00
|
|
|
back-tier:
|