2024-08-27 18:23:15 +02:00
|
|
|
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:
|
2025-01-20 18:27:27 +01:00
|
|
|
- "REPORT_DB_HOST=${DB_HOST:-db}"
|
|
|
|
|
- "REPORT_DB_TYPE=${DB_TYPE:-mysql}"
|
|
|
|
|
- "REPORT_DB_PORT=${DB_PORT:-3306}"
|
|
|
|
|
- "REPORT_DB_NAME=${DB_NAME:-dmarc_report}"
|
|
|
|
|
- "REPORT_DB_USER=${DB_USER:-dmarc_report}"
|
|
|
|
|
- "REPORT_DB_PASS=${DB_PASSWORD}"
|
2024-08-27 18:23:15 +02:00
|
|
|
- "PARSER_IMAP_SERVER=${IMAP_SERVER}"
|
|
|
|
|
- "PARSER_IMAP_PORT=${IMAP_PORT:-993}"
|
2025-01-20 18:27:27 +01:00
|
|
|
- "PARSER_IMAP_USER=${IMAP_USER}"
|
|
|
|
|
- "PARSER_IMAP_PASS=${IMAP_PASSWORD}"
|
|
|
|
|
- "PARSER_IMAP_READ_FOLDER=${IMAP_READ_FOLDER:-Inbox}"
|
2024-08-27 18:23:15 +02:00
|
|
|
- "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
|