Skip to content

Instantly share code, notes, and snippets.

@williln
Created February 15, 2019 23:55
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 williln/dcc16a923b68c146481002f10a20a881 to your computer and use it in GitHub Desktop.
Save williln/dcc16a923b68c146481002f10a20a881 to your computer and use it in GitHub Desktop.
version: '3'
services:
db:
[your DB info]
web:
[your web info]
redis:
image: "redis:alpine"
celery:
build: .
entrypoint: celery -A [directory with your celery.py] worker -l debug
volumes:
- .:/code
depends_on:
- db
- redis
environment:
- DJANGO_READ_DOT_ENV_FILE=true
- PYTHONDONTWRITEBYTECODE=true
volumes:
postgres_data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment