Created
February 8, 2022 07:01
-
-
Save cryocaustik/2ab2244dc348ab2a86aa0a8dce859676 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.8" | |
services: | |
app: | |
build: | |
context: . | |
dockerfile: docker/server.dockerfile | |
command: "gunicorn --workers=2 --bind=0.0.0.0:8000 server:app" | |
volumes: | |
- ./server/server.py:/app/server.py | |
- .env:/app/.env | |
nginx: | |
image: nginx | |
ports: | |
- "8080:80" | |
volumes: | |
- ./nginx:/etc/nginx/conf.d | |
- ./client/dist:/app | |
depends_on: | |
- app | |
client: | |
build: | |
context: . | |
dockerfile: docker/client.dockerfile | |
command: yarn build | |
volumes: | |
- ./client/dist:/app/dist | |
networks: | |
default: | |
name: ingress_network | |
external: true |
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.8" | |
services: | |
nginx: | |
image: nginx:latest | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./conf.d:/etc/nginx/conf.d | |
- ./certs:/etc/nginx/certs | |
- ./logs:/var/log/nginx | |
- ./default_site:/var/www/html | |
networks: | |
- ingress_network | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
networks: | |
ingress_network: | |
name: ingress_network | |
external: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment