Created
January 23, 2017 13:58
-
-
Save ZZR-china/3a9a03764d278286331930ae575f4707 to your computer and use it in GitHub Desktop.
simple flask nginx mongo redis docker-compose.yml
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
nginx: | |
restart: always | |
build: ./nginx | |
ports: | |
- "80:80" | |
volumes: | |
- /www/static | |
volumes_from: | |
- web | |
links: | |
- web:web | |
web: | |
build: ./web | |
command: python -u ./web/app.py | |
ports: | |
- "5000:5000" | |
volumes: | |
- .:/flask_compose | |
links: | |
- mongo | |
- redis | |
mongo: | |
image: mongo:3.0.2 | |
redis: | |
image: redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment