Skip to content

Instantly share code, notes, and snippets.

@faizanbashir
Last active November 20, 2022 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save faizanbashir/36b81228ea941dcc49575dc69b8369d9 to your computer and use it in GitHub Desktop.
Save faizanbashir/36b81228ea941dcc49575dc69b8369d9 to your computer and use it in GitHub Desktop.
Voting-app
version: "3"
services:
vote:
build: ./vote
command: python app.py
volumes:
- ./vote:/app
ports:
- "5000:80"
networks:
- front-tier
- back-tier
result:
build: ./result
command: nodemon server.js
volumes:
- ./result:/app
ports:
- "5001:80"
- "5858:5858"
networks:
- front-tier
- back-tier
worker:
build:
context: ./worker
depends_on:
- "redis"
networks:
- back-tier
redis:
image: redis:alpine
container_name: redis
ports: ["6379"]
networks:
- back-tier
db:
image: postgres:9.4
container_name: db
volumes:
- "db-data:/var/lib/postgresql/data"
networks:
- back-tier
volumes:
db-data:
networks:
front-tier:
back-tier:
@Yogeshsi
Copy link

ERROR: Cannot locate specified Dockerfile: Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment