Skip to content

Instantly share code, notes, and snippets.

@valentin2105
Last active May 21, 2016 17:50
Show Gist options
  • Save valentin2105/5e8cc7bd16cfd4120e72f3b00ce00a22 to your computer and use it in GitHub Desktop.
Save valentin2105/5e8cc7bd16cfd4120e72f3b00ce00a22 to your computer and use it in GitHub Desktop.
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