Skip to content

Commit

Permalink
Fix healthchecks values
Browse files Browse the repository at this point in the history
  • Loading branch information
trottomv committed Jan 10, 2024
1 parent ee4390c commit e45198f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions {{cookiecutter.project_dirname}}/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ services:
- PYTHONDEVMODE
- PYTHONTRACEMALLOC
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8000/backend/health/"]
interval: 60s
timeout: 3s
test: curl --fail --head http://backend:8000/backend/health/ || exit 1
interval: 30s
start_period: 5s
timeout: 5s
retries: 5
user: ${USER:-appuser}
volumes:
Expand All @@ -50,8 +51,9 @@ services:
dockerfile: ${FRONTEND_DOCKER_FILE:-docker/local.Dockerfile}{% if cookiecutter.backend_type != "none" %}
healthcheck:
test: wget -O- -q http://localhost:3000/frontend/health/ || exit 1
interval: 5s
timeout: 3s
interval: 30s
timeout: 5s
start_period: 5s
retries: 5
environment:
- INTERNAL_BACKEND_URL=${INTERNAL_BACKEND_URL:-http://{{ cookiecutter.backend_service_slug }}:{{ cookiecutter.backend_service_port }}{{ '}' }}
Expand All @@ -72,8 +74,9 @@ services:
condition: service_healthy{% endif %}
healthcheck:
test: ["CMD", "traefik" ,"healthcheck", "--ping"]
interval: 60s
interval: 30s
timeout: 5s
start_period: 5s
retries: 5
image: traefik:v2.10
ports:
Expand Down

0 comments on commit e45198f

Please sign in to comment.