cloudnet-compose/docker-compose.yml

37 lines
510 B
YAML
Raw Normal View History

version: "2"
services:
voting-app:
build: ./voting-app/.
volumes:
- ./voting-app:/app
ports:
- "5000:80"
links:
- redis
2015-11-15 20:59:29 +01:00
redis:
image: redis
ports: ["6379"]
2015-11-15 20:59:29 +01:00
worker:
build: ./worker
links:
- db
- redis
2015-11-15 20:59:29 +01:00
db:
image: postgres:9.4
volumes:
- "myvolume:/var/lib/postgresql/data"
2015-11-15 20:59:29 +01:00
result-app:
build: ./result-app/.
volumes:
- ./result-app:/app
ports:
- "5001:80"
links:
- db
volumes:
myvolume: