Skip to content

Instantly share code, notes, and snippets.

@adrahon
Created April 27, 2016 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrahon/dfe31bfdb707c5eca10583fc9d3dd361 to your computer and use it in GitHub Desktop.
Save adrahon/dfe31bfdb707c5eca10583fc9d3dd361 to your computer and use it in GitHub Desktop.
version: "2"
services:
voting-app:
image: docker/example-voting-app-voting-app
ports:
- "80"
networks:
- voteapp
result-app:
image: docker/example-voting-app-result-app
ports:
- "80"
networks:
- voteapp
worker:
image: docker/example-voting-app-worker
networks:
- voteapp
redis:
image: redis
ports:
- "6379"
networks:
- voteapp
container_name: redis
db:
image: postgres:9.4
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- voteapp
container_name: db
volumes:
db-data:
networks:
voteapp:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment