mirror of
https://github.com/gutmensch/docker-dmarc-report.git
synced 2025-12-29 16:15:55 +00:00
docs: Manual Update and docker-compose cleanup (#61)
* 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
This commit is contained in:
37
examples/docker-compose.postgres.yml
Normal file
37
examples/docker-compose.postgres.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
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
|
||||
Reference in New Issue
Block a user