kompose/examples/docker-voting.yml
2016-08-04 09:57:04 -07:00

34 lines
521 B
YAML

version: "2"
services:
vote:
build: ./vote
command: python app.py
labels:
- "com.example.description=Vote"
volumes:
- ./vote:/app
ports:
- "5000:80"
redis:
image: redis:alpine
ports: ["6379"]
worker:
build: ./worker
db:
image: postgres:9.4
labels:
- "com.example.description=Postgres Database"
result:
build: ./result
command: nodemon --debug server.js
volumes:
- ./result:/app
ports:
- "5001:80"
- "5858:5858"