mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
use REDIS_URL instead of DJANGO_CACHE_URL, fixes #379
This commit is contained in:
parent
fe497c6dd0
commit
fc54af7b15
|
@ -4,7 +4,7 @@ set -e
|
|||
# Since docker-compose relies heavily on environment variables itself for configuration, we'd have to define multiple
|
||||
# environment variables just to support cookiecutter out of the box. That makes no sense, so this little entrypoint
|
||||
# does all this for us.
|
||||
export DJANGO_CACHE_URL=redis://redis:6379/0
|
||||
export REDIS_URL=redis://redis:6379/0
|
||||
|
||||
# the official postgres image uses 'postgres' as default user if not set explictly.
|
||||
if [ -z "$POSTGRES_ENV_POSTGRES_USER" ]; then
|
||||
|
@ -13,6 +13,6 @@ fi
|
|||
|
||||
export DATABASE_URL=postgres://$POSTGRES_ENV_POSTGRES_USER:$POSTGRES_ENV_POSTGRES_PASSWORD@postgres:5432/$POSTGRES_ENV_POSTGRES_USER
|
||||
{% if cookiecutter.use_celery == 'y' %}
|
||||
export CELERY_BROKER_URL=$DJANGO_CACHE_URL
|
||||
export CELERY_BROKER_URL=$REDIS_URL
|
||||
{% endif %}
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user