mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-29 16:15:55 +00:00
Added db persistence and healthcheck to compose sample (#38)
This commit is contained in:
@@ -78,6 +78,13 @@ services:
|
|||||||
- "MYSQL_DATABASE=dmarc_report"
|
- "MYSQL_DATABASE=dmarc_report"
|
||||||
- "MYSQL_USER=dmarc_report"
|
- "MYSQL_USER=dmarc_report"
|
||||||
- "MYSQL_PASSWORD=dbpassword"
|
- "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
|
## Optional extended configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user