cloudnet-compose/docker-compose.yml

56 lines
821 B
YAML
Raw Normal View History

2017-01-24 02:44:16 +01:00
version: "3"
services:
2016-06-18 18:14:28 +02:00
vote:
build: ./vote
2016-06-18 06:13:51 +02:00
command: python app.py
volumes:
2016-06-18 18:14:28 +02:00
- ./vote:/app
ports:
- "5000:80"
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
volumes:
2016-06-18 18:14:28 +02:00
- ./result:/app
ports:
- "5001:80"
- "5858:5858"
networks:
- front-tier
- back-tier
worker:
2017-04-07 21:33:22 +02:00
build:
context: ./worker
depends_on:
- "redis"
- "db"
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: