cloudnet-compose/vote-apps/docker-compose.yml
Ben Firshman 94c0d7b507 Convert app to use Compose file 2
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-02-04 10:53:23 -08:00

37 lines
510 B
YAML

version: "2"
services:
voting-app:
build: ./voting-app/.
volumes:
- ./voting-app:/app
ports:
- "5000:80"
links:
- redis
redis:
image: redis
ports: ["6379"]
worker:
build: ./worker
links:
- db
- redis
db:
image: postgres:9.4
volumes:
- "myvolume:/var/lib/postgresql/data"
result-app:
build: ./result-app/.
volumes:
- ./result-app:/app
ports:
- "5001:80"
links:
- db
volumes:
myvolume: