🧑💻(docker) add celery beat for dev env
Add new container to run celery beat to manage schedule job
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -58,6 +58,9 @@ src/frontend/tsclient
|
|||||||
# Logs
|
# Logs
|
||||||
*.log
|
*.log
|
||||||
|
|
||||||
|
# Celery beat
|
||||||
|
src/backend/celerybeat-schedule
|
||||||
|
|
||||||
# Test & lint
|
# Test & lint
|
||||||
.coverage
|
.coverage
|
||||||
coverage.json
|
coverage.json
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ and this project adheres to
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
- 🧑💻(docker) add celery beat to manage periodic tasks
|
||||||
- ✨(organization) add metadata field #790
|
- ✨(organization) add metadata field #790
|
||||||
- ⬆️(nginx) bump nginx-unprivileged to 1.27 #797
|
- ⬆️(nginx) bump nginx-unprivileged to 1.27 #797
|
||||||
- ✨(teams) allow broadly available teams #796
|
- ✨(teams) allow broadly available teams #796
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -110,6 +110,7 @@ run: ## start the wsgi (production) and development server
|
|||||||
@$(COMPOSE) up --force-recreate -d nginx
|
@$(COMPOSE) up --force-recreate -d nginx
|
||||||
@$(COMPOSE) up --force-recreate -d app-dev
|
@$(COMPOSE) up --force-recreate -d app-dev
|
||||||
@$(COMPOSE) up --force-recreate -d celery-dev
|
@$(COMPOSE) up --force-recreate -d celery-dev
|
||||||
|
@$(COMPOSE) up --force-recreate -d celery-beat-dev
|
||||||
@$(COMPOSE) up --force-recreate -d keycloak
|
@$(COMPOSE) up --force-recreate -d keycloak
|
||||||
@$(COMPOSE) up -d dimail
|
@$(COMPOSE) up -d dimail
|
||||||
@echo "Wait for postgresql to be up..."
|
@echo "Wait for postgresql to be up..."
|
||||||
|
|||||||
@@ -57,6 +57,22 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- app-dev
|
- app-dev
|
||||||
|
|
||||||
|
celery-beat-dev:
|
||||||
|
user: ${DOCKER_USER:-1000}
|
||||||
|
image: people:backend-development
|
||||||
|
command: ["celery", "-A", "people.celery_app", "beat", "-l", "DEBUG"]
|
||||||
|
environment:
|
||||||
|
- DJANGO_CONFIGURATION=Development
|
||||||
|
env_file:
|
||||||
|
- env.d/development/common
|
||||||
|
- env.d/development/postgresql
|
||||||
|
volumes:
|
||||||
|
- ./src/backend:/app
|
||||||
|
- ./data/media:/data/media
|
||||||
|
- ./data/static:/data/static
|
||||||
|
depends_on:
|
||||||
|
- app-dev
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
Reference in New Issue
Block a user