Skip to content

Instantly share code, notes, and snippets.

@vijaybajrot
Last active July 16, 2021 11:06
Show Gist options
  • Save vijaybajrot/05f5a6592c20cd3b32977da2c0229e7f to your computer and use it in GitHub Desktop.
Save vijaybajrot/05f5a6592c20cd3b32977da2c0229e7f to your computer and use it in GitHub Desktop.
Hackathon Docker compose
version: "3.3"
services:
job:
container_name: hackthon_job
build:
context: ./python-hackathon # specify the directory of the Dockerfile
args:
ENV: development
image: python-hackathon
network_mode: host
command: uvicorn app.server:app --reload --port 5001
ports:
- "5001:5001"
volumes:
- ./python-hackathon:/app
backend:
container_name: hackthon_backend
build: hackthon-api # specify the directory of the Dockerfile
image: hackthon-api
network_mode: host
ports:
- "8080:8080"
front:
container_name: hackthon_front
image: hackthon-frontend
build: hackthon-frontend # specify the directory of the Dockerfile
ports:
- "5000:80"
volumes:
- ./hackthon-frontend:/app
@vijaybajrot
Copy link
Author

Updated for change ENV build args for python image

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