From e7c55a0d2cd42cfb63e03c563f02c56054c81ea4 Mon Sep 17 00:00:00 2001 From: Marvin Scham <67930021+marvinscham@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:50:06 +0200 Subject: [PATCH] Added db persistence and healthcheck to compose sample (#38) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index ea4ae89..5aa0869 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,13 @@ services: - "MYSQL_DATABASE=dmarc_report" - "MYSQL_USER=dmarc_report" - "MYSQL_PASSWORD=dbpassword" + volumes: + - ./dmarc-report-db:/var/lib/mysql + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-uroot", "-pdbrootpassword"] + interval: 10s + timeout: 10s + retries: 5 ``` ## Optional extended configuration