Created
August 22, 2018 22:45
-
-
Save ricardochaves/5905e35e1a49dfc938e021a178704871 to your computer and use it in GitHub Desktop.
nginx and flask api
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.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