Skip to content

Commit 4b93dc7

Browse files
authored
🐛 Fix docker configuration for flower (#37)
1 parent 2db416d commit 4b93dc7

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

{{cookiecutter.project_slug}}/docker-compose.shared.admin.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ services:
1111
volumes:
1212
- /var/run/docker.sock:/var/run/docker.sock
1313
flower:
14-
image: totem/celery-flower-docker
14+
image: mher/flower
1515
env_file:
1616
- env-flower.env
17+
command:
18+
- "--broker=amqp://guest@queue:5672//"
19+
# For the "Broker" tab to work in the flower UI, uncomment the following command argument,
20+
# and change the queue service's image as described in docker-compose.shared.base-images.yml
21+
# - "--broker_api=http://guest:guest@queue:15672/api//"

{{cookiecutter.project_slug}}/docker-compose.shared.base-images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ services:
44
image: postgres:11
55
queue:
66
image: rabbitmq:3
7+
# Using the below image instead is required to enable the "Broker" tab in the flower UI:
8+
# image: rabbitmq:3-management
9+
#
10+
# You also have to change the flower command as documented in docker-compose.shared.admin.yml
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
FLOWER_BASIC_AUTH={{cookiecutter.flower_auth}}
2-
AMQP_ADMIN_HOST=queue
3-
AMQP_HOST=queue

0 commit comments

Comments
 (0)