Merge pull request #486 from mouse-reeve/flower-auth

uses basic auth for flower
This commit is contained in:
Mouse Reeve 2021-01-05 12:54:42 -08:00 committed by GitHub
commit 0a75c33de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -27,6 +27,10 @@ REDIS_PASSWORD=redispassword123
CELERY_BROKER=redis://:${REDIS_PASSWORD}@redis:6379/0 CELERY_BROKER=redis://:${REDIS_PASSWORD}@redis:6379/0
CELERY_RESULT_BACKEND=redis://:${REDIS_PASSWORD}@redis:6379/0 CELERY_RESULT_BACKEND=redis://:${REDIS_PASSWORD}@redis:6379/0
FLOWER_PORT=8888
FLOWER_USER=mouse
FLOWER_PASSWORD=changeme
EMAIL_HOST="smtp.mailgun.org" EMAIL_HOST="smtp.mailgun.org"
EMAIL_PORT=587 EMAIL_PORT=587
EMAIL_HOST_USER=mail@your.domain.here EMAIL_HOST_USER=mail@your.domain.here

View file

@ -74,7 +74,7 @@ services:
restart: on-failure restart: on-failure
flower: flower:
build: . build: .
command: flower --port=8888 command: flower --port=8888 --basic_auth=${FLOWER_USER}:${FLOWER_PASSWORD}
env_file: .env env_file: .env
environment: environment:
- CELERY_BROKER_URL=${CELERY_BROKER} - CELERY_BROKER_URL=${CELERY_BROKER}