🧑‍💻(docker) add flower for dev env

Allow to manage and monitor celery tasks
This commit is contained in:
Sabrina Demagny
2025-02-27 02:04:08 +01:00
parent 68ed5e4d55
commit 0b290d9a5e
3 changed files with 19 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ run: ## start the wsgi (production) and development server
@$(COMPOSE) up --force-recreate -d app-dev
@$(COMPOSE) up --force-recreate -d celery-dev
@$(COMPOSE) up --force-recreate -d celery-beat-dev
@$(COMPOSE) up --force-recreate -d flower-dev
@$(COMPOSE) up --force-recreate -d keycloak
@$(COMPOSE) up -d dimail
@echo "Wait for postgresql to be up..."

View File

@@ -180,3 +180,20 @@ services:
DIMAIL_JWT_SECRET: fake_jwt_secret
ports:
- "8001:8000"
flower-dev:
user: ${DOCKER_USER:-1000}
image: people:backend-development
command: ["celery", "-A", "people.celery_app", "flower", "--port=5555"]
environment:
- DJANGO_CONFIGURATION=Development
env_file:
- env.d/development/common
- env.d/development/postgresql
ports:
- "5555:5555"
volumes:
- ./src/backend:/app
depends_on:
- celery-dev
- redis

View File

@@ -47,6 +47,7 @@ dependencies = [
"drf_spectacular[sidecar]==0.28.0",
"easy_thumbnails==2.10",
"factory_boy==3.3.3",
"flower==2.0.0",
"gunicorn==23.0.0",
"joserfc==1.0.4",
"jsonschema==4.23.0",