Skip to content

Instantly share code, notes, and snippets.

@omerxx
Created January 10, 2019 12:25
Show Gist options
  • Save omerxx/b85653db9c53771b816b069f3db537d5 to your computer and use it in GitHub Desktop.
Save omerxx/b85653db9c53771b816b069f3db537d5 to your computer and use it in GitHub Desktop.
version: "3"
services:
vote:
image: prodopsio/vote
command: python app.py
ports:
- "5000:80"
networks:
- exlibris
result:
image: prodopsio/vote:result
command: nodemon server.js
ports:
- "5001:80"
- "5858:5858"
networks:
- exlibris
worker:
image: prodopsio/vote:worker
depends_on:
- "redis"
networks:
- exlibris
redis:
image: redis:5.0-alpine
container_name: redis
ports: ["6379"]
networks:
- exlibris
db:
image: postgres:9.4
container_name: db
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- exlibris
volumes:
db-data:
networks:
exlibris:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment