Skip to content

Commit

Permalink
imp: healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed May 3, 2024
1 parent e2f4efd commit 743fb80
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions common.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ services:
traefik.frontend.passHostHeader: "true"
traefik.port: "8069"
{%- endif %}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8069"]
interval: 45s
timeout: 15s
retries: 3
start_period: 25s

{% if postgres_version -%}
db:
Expand All @@ -43,6 +49,12 @@ services:
work_mem = 512MB
volumes:
- db:/var/lib/postgresql/data:z
healthcheck:
test: ["CMD", "pg_isready"]
interval: 45s
timeout: 30s
retries: 3
start_period: 25s
{%- endif %}

smtpfake:
Expand Down Expand Up @@ -113,4 +125,10 @@ services:
volumes:
- backup_cache:/root:z
- filestore:/mnt/backup/src/odoo:z
healthcheck:
test: ["CMD", "pg_isready"]
interval: 45s
timeout: 30s
retries: 3
start_period: 25s
{%- endif %}

0 comments on commit 743fb80

Please sign in to comment.