Skip to content

Instantly share code, notes, and snippets.

@ricardochaves
Created August 22, 2018 22:45
Show Gist options
  • Select an option

  • Save ricardochaves/5905e35e1a49dfc938e021a178704871 to your computer and use it in GitHub Desktop.

Select an option

Save ricardochaves/5905e35e1a49dfc938e021a178704871 to your computer and use it in GitHub Desktop.
nginx and flask api
version: "3.5"
services:
nginx1:
image: nginx:1.13.3
volumes:
- ./nginx/local.nginx.conf:/etc/nginx/nginx.conf
depends_on:
- api
links:
- api:api
ports:
- 83:80
api:
build: .
ports:
- "5000:5000"
environment:
- FLASK_APP=app.py
volumes:
- .:/api
command: ["flask", "run", "--host=0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment