Use redis password in production

This commit is contained in:
Mouse Reeve 2020-10-27 12:30:34 -07:00
parent 7dd1deb438
commit 439feac110
2 changed files with 2 additions and 0 deletions

View file

@ -25,6 +25,7 @@ POSTGRES_HOST=db
CELERY_BROKER=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
REDIS_PASSWORD=redispassword123
EMAIL_HOST='smtp.mailgun.org'
EMAIL_PORT=587

View file

@ -46,6 +46,7 @@ services:
- 8000:8000
redis:
image: redis
command: redis-server --requirepass ${REDIS_PASSWORD}
env_file: .env
ports:
- 6379:6379