Created
September 17, 2018 14:29
-
-
Save nerixim/bbbe10bf9fbfb2242be2b3f835e10188 to your computer and use it in GitHub Desktop.
docker-compose file for flask/nginx app
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: | |
| web: | |
| build: | |
| context: ./webapp/ | |
| dockerfile: Dockerfile | |
| depends_on: | |
| - db | |
| volumes: | |
| - ./webapp/:/app | |
| environment: | |
| DEBUG: 'True' | |
| GUNICORN_CMD_ARGS: "-b 0.0.0.0:5000 --reload" | |
| db: | |
| image: mariadb | |
| nginx: | |
| image: nginx | |
| depends_on: | |
| - web | |
| ports: | |
| - "80:80" | |
| volumes: | |
| - ./nginx/nginx.conf:/etc/nginx/nginx.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment