Compare commits

...

1 Commits

Author SHA1 Message Date
Pepe Fagoaga
0571c26755 fix(beat): make it dependant from API service 2026-04-07 18:35:42 +02:00
3 changed files with 20 additions and 1 deletions

View File

@@ -56,7 +56,6 @@ start_worker() {
start_worker_beat() {
echo "Starting the worker-beat..."
sleep 15
poetry run python -m celery -A config.celery beat -l "${DJANGO_LOGGING_LEVEL:-info}" --scheduler django_celery_beat.schedulers:DatabaseScheduler
}

View File

@@ -27,6 +27,12 @@ services:
condition: service_healthy
neo4j:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost:${DJANGO_PORT:-8080}/api/v1/ || exit 1"]
interval: 10s
timeout: 5s
retries: 12
start_period: 60s
entrypoint:
- "/home/prowler/docker-entrypoint.sh"
- "dev"
@@ -145,6 +151,8 @@ services:
condition: service_healthy
neo4j:
condition: service_healthy
api-dev:
condition: service_healthy
ulimits:
nofile:
soft: 65536
@@ -171,6 +179,8 @@ services:
condition: service_healthy
neo4j:
condition: service_healthy
api-dev:
condition: service_healthy
ulimits:
nofile:
soft: 65536

View File

@@ -23,6 +23,12 @@ services:
condition: service_healthy
neo4j:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget -q -O /dev/null http://localhost:${DJANGO_PORT:-8080}/api/v1/ || exit 1"]
interval: 10s
timeout: 5s
retries: 12
start_period: 60s
entrypoint:
- "/home/prowler/docker-entrypoint.sh"
- "prod"
@@ -118,6 +124,8 @@ services:
condition: service_healthy
postgres:
condition: service_healthy
api:
condition: service_healthy
ulimits:
nofile:
soft: 65536
@@ -136,6 +144,8 @@ services:
condition: service_healthy
postgres:
condition: service_healthy
api:
condition: service_healthy
ulimits:
nofile:
soft: 65536