Last active
May 21, 2016 17:50
-
-
Save valentin2105/5e8cc7bd16cfd4120e72f3b00ce00a22 to your computer and use it in GitHub Desktop.
A Flask Docker-compose example
This file contains 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: '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