Created
April 23, 2019 05:41
-
-
Save evildmp/73b60a50440635a461cb3657958abcfe to your computer and use it in GitHub Desktop.
Following the guide at http://docs.divio.com/en/latest/how-to/configure-celery.html
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
rabbitmq: | |
image: rabbitmq:3.5-management | |
hostname: rabbitmq | |
ports: | |
- "15672:15672" | |
expose: | |
- "15672" | |
environment: | |
RABBITMQ_ERLANG_COOKIE: <use the secret cookie here> | |
celeryworker: | |
build: . | |
links: | |
- "db:postgres" | |
- "rabbitmq:rabbitmq" | |
volumes: | |
- ".:/app:rw" | |
- "./ data:/data:rw" | |
env_file: .env-local | |
command: aldryn-celery worker | |
celerybeat: | |
build: . | |
command: aldryn-celery beat | |
links: | |
- "db:postgres" | |
volumes: | |
- ".:/app:rw" | |
- "./data:/data:rw" | |
env_file: .env-local | |
celerycam: | |
build: . | |
command: aldryn-celery cam | |
links: | |
- "db:postgres" | |
volumes: | |
- ".:/app:rw" | |
- "./data:/data:rw" | |
env_file: .env-local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment