Healthcheck in OCI

session date format
This commit is contained in:
2026-09-16 06:53:38 +00:00
parent 5b691a577b
commit 79cdf83c9e
2 changed files with 18 additions and 6 deletions
+6 -3
View File
@@ -32,6 +32,9 @@
env_file: "/var/lib/{{ host_directory }}/.env"
networks:
- name: "brewman_{{ instance }}_net"
# volumes:
# - "/var/lib/{{ host_directory }}/frontend:/frontend"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost/health || kill -s 15 1"]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3