Skip to content

Instantly share code, notes, and snippets.

@nerixim
Created September 17, 2018 14:29
Show Gist options
  • Select an option

  • Save nerixim/bbbe10bf9fbfb2242be2b3f835e10188 to your computer and use it in GitHub Desktop.

Select an option

Save nerixim/bbbe10bf9fbfb2242be2b3f835e10188 to your computer and use it in GitHub Desktop.
docker-compose file for flask/nginx app
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