mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-17 09:45:58 +00:00
* Added command to trigger a manual report update. Removes verison-tag from docker-compose, since its deprecated * chore: Added docker-compose examples and env-file - Added examples-folder - Added an example for a docker-compose with mysql - Added an example for a docker-compose with postgres - Extracted the most important variables to an env.example file - Added some documentation on how to use the env-file and the compose files
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
services:
|
|
dmarc-report:
|
|
image: "gutmensch/dmarc-report:latest"
|
|
hostname: dmarc-report
|
|
container_name: dmarc-report
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- "REPORT_DB_TYPE=pgsql"
|
|
- "REPORT_DB_PORT=5432"
|
|
- "REPORT_DB_NAME=dmarc_report"
|
|
- "REPORT_DB_USER=dmarc_report"
|
|
- "REPORT_DB_PASS=${DMARC_DB_PASSWORD}"
|
|
- "PARSER_IMAP_SERVER=${IMAP_SERVER}"
|
|
- "PARSER_IMAP_PORT=${IMAP_PORT:-993}"
|
|
- "PARSER_IMAP_USER=${DMARC_EMAIL}"
|
|
- "PARSER_IMAP_PASS=${DMARC_PASSWORD}"
|
|
- "PARSER_IMAP_READ_FOLDER=Inbox"
|
|
- "PARSER_IMAP_MOVE_FOLDER=${IMAP_MOVE_FOLDER:-processed}"
|
|
- "PARSER_IMAP_MOVE_FOLDER_ERR=${IMAP_MOVE_FOLDER_ERR:-error}"
|
|
|
|
db:
|
|
image: postgres:latest
|
|
environment:
|
|
- "POSTGRES_DB=dmarc_report"
|
|
- "POSTGRES_USER=dmarc_report"
|
|
- "POSTGRES_PASSWORD=${DMARC_DB_PASSWORD}"
|
|
volumes:
|
|
- ./run/db:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U dmarc_report"]
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 5 |