2017-01-24 02:44:16 +01:00
|
|
|
version: "3"
|
2016-10-12 01:24:49 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
vote:
|
|
|
|
build: ./vote
|
|
|
|
command: python app.py
|
|
|
|
volumes:
|
|
|
|
- ./vote:/app
|
|
|
|
ports:
|
|
|
|
- "5000:80"
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
ports: ["6379"]
|
|
|
|
|
|
|
|
worker:
|
|
|
|
build: ./worker
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:9.4
|
2020-02-19 20:44:32 +01:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "postgres"
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
2016-10-12 01:24:49 +02:00
|
|
|
|
|
|
|
result:
|
|
|
|
build: ./result
|
2017-11-29 19:43:31 +01:00
|
|
|
command: nodemon server.js
|
2016-10-12 01:24:49 +02:00
|
|
|
volumes:
|
|
|
|
- ./result:/app
|
|
|
|
ports:
|
|
|
|
- "5001:80"
|
|
|
|
- "5858:5858"
|