Skip to content

Instantly share code, notes, and snippets.

@christianbriggs
Forked from initcron/docker-compose-v3.yml
Created November 28, 2017 21:23
Show Gist options
  • Save christianbriggs/e2b208f5736b1017eec77c1c762f30b2 to your computer and use it in GitHub Desktop.
Save christianbriggs/e2b208f5736b1017eec77c1c762f30b2 to your computer and use it in GitHub Desktop.
version: "3"
networks:
nw01:
driver: bridge
volumes:
db-data:
services:
vote:
image: schoolofdevops/vote:movies
links:
- redis:redis
ports:
- 80
networks:
- nw01
depends_on:
- redis
redis:
image: redis:alpine
networks:
- nw01
worker:
image: schoolofdevops/vote-worker
links:
- redis:redis
networks:
- nw01
depends_on:
- redis
db:
image: postgres:9.4
networks:
- nw01
volumes:
- db-data:/var/lib/postgresql/data
result:
image: schoolofdevops/vote-result
ports:
- 5001:80
networks:
- nw01
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment