Added db persistence and healthcheck to compose sample (#38)

This commit is contained in:
Marvin Scham
2023-09-22 11:50:06 +02:00
committed by GitHub
parent 2bcf0673d2
commit e7c55a0d2c

View File

@@ -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