Skip to content

Commit

Permalink
Back to version 2 (Docker Compose)
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Cointet authored and Etienne Cointet committed Jan 30, 2017
1 parent cdebaf1 commit 3eca03b
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3"
version: "2"

services:
vote:
Expand Down
52 changes: 52 additions & 0 deletions docker-compose.yml~
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: "3"

services:
vote:
build: ./vote
command: python app.py
volumes:
- ./vote:/app
ports:
- "5000:80"
networks:
- front-tier
- back-tier

result:
build: ./result
command: nodemon --debug server.js
volumes:
- ./result:/app
ports:
- "5001:80"
- "5858:5858"
networks:
- front-tier
- back-tier

worker:
build: ./worker
networks:
- back-tier

redis:
image: redis:alpine
container_name: redis
ports: ["6379"]
networks:
- back-tier

db:
image: postgres:9.4
container_name: db
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- back-tier

volumes:
db-data:

networks:
front-tier:
back-tier:

0 comments on commit 3eca03b

Please sign in to comment.