Skip to content

Instantly share code, notes, and snippets.

@ZZR-china
Created January 23, 2017 13:58
Show Gist options
  • Save ZZR-china/3a9a03764d278286331930ae575f4707 to your computer and use it in GitHub Desktop.
Save ZZR-china/3a9a03764d278286331930ae575f4707 to your computer and use it in GitHub Desktop.
simple flask nginx mongo redis docker-compose.yml
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