Skip to content

Instantly share code, notes, and snippets.

@jimmygoogle
Created March 5, 2019 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimmygoogle/f2b313893a0972d0c3bf71aa7dd06d1f to your computer and use it in GitHub Desktop.
Save jimmygoogle/f2b313893a0972d0c3bf71aa7dd06d1f to your computer and use it in GitHub Desktop.
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