Skip to content

Commit

Permalink
#38: Add on/off switch for Celery and put variables to the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Jun 17, 2020
1 parent 6af1870 commit 52c180e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ ENV DEBIAN_FRONTEND=noninteractive \
TAIGA_BROKER_URL=amqp://guest:guest@rabbit:5672 \
# Redis url
TAIGA_REDIS_URL="redis://redis:6379/0" \
# Enables Celery support
CELERY_ENABLED=false \
# Serializer type supported by Taiga at Celery
CELERY_SERIALIZER_TYPE=pickle \
# Default locale ex. en, pl
TAIGA_DEFAULT_LOCALE=en \
# !!! Secret key, please change it with your own
Expand Down
2 changes: 1 addition & 1 deletion container-files/opt/taiga-conf/taiga/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

BROKER_URL = os.getenv('TAIGA_BROKER_URL', 'amqp://guest:guest@rabbit:5672')
CELERY_RESULT_BACKEND = os.getenv('TAIGA_REDIS_URL', 'redis://redis:6379/0').replace('"', '')
CELERY_ENABLED = True
CELERY_ENABLED = os.getenv('CELERY_ENABLED').lower() == 'true'

EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
EVENTS_PUSH_BACKEND_OPTIONS = {"url": BROKER_URL}
Expand Down

0 comments on commit 52c180e

Please sign in to comment.