Created
March 5, 2019 00:18
-
-
Save jimmygoogle/f2b313893a0972d0c3bf71aa7dd06d1f to your computer and use it in GitHub Desktop.
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: '3' | |
services: | |
web: | |
restart: always | |
build: . | |
command: python ./app.py | |
ports: | |
- 5000:5000 | |
volumes: | |
- .:/app | |
depends_on: | |
- mongo | |
- db | |
- redis | |
mongo: | |
image: mongo | |
ports: | |
- "27017:27017" | |
db: | |
image: mysql:latest | |
restart: always | |
ports: | |
- '3307:3306' | |
volumes: | |
- ./project/mysql/init_db:/docker-entrypoint-initdb.d | |
celery: | |
build: . | |
command: celery worker -A project.celery_worker.celery -l debug | |
volumes: | |
- .:/app | |
redis: | |
image: redis:alpine | |
ports: | |
- "6379:6379" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment