Last active
July 16, 2021 11:06
-
-
Save vijaybajrot/05f5a6592c20cd3b32977da2c0229e7f to your computer and use it in GitHub Desktop.
Hackathon Docker compose
This file contains hidden or 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.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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated for change ENV build args for python image