Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Flask Docker-compose example
version: '2'
services:
flask_front:
image: nginx:latest
restart: always
ports:
- 80:80
- 443:443
log_driver: syslog
links:
- flask_engine
volumes:
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./var/log/nginx:/var/log/nginx
- ./etc/letsencrypt:/etc/letsencrypt
- ./etc/nginx/certs/dhparam.pem:/etc/nginx/certs/dhparam.pem
flask_engine:
build: .
restart: always
expose:
- 5000
volumes:
- ./app:/app:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment