-
-
Save sanjaygeeky/0b0a295c1d6d1aa49db3075a853bcc0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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