initially support compose v2 format, and close #8 as well

This commit is contained in:
ngtuna
2016-07-20 16:28:09 +07:00
parent a9184491b7
commit a8add081ab
3 changed files with 69 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
version: "2"
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
result:
build: ./result
command: nodemon --debug server.js
volumes:
- ./result:/app
ports:
- "5001:80"
- "5858:5858"