Files
nomad-nummer5/apps/dmarc/live.hcl
2025-11-17 13:33:47 +01:00

66 lines
1.5 KiB
HCL

job "dmarc" {
datacenters = [
"nummer5",
]
type = "service"
node_pool = "apps"
priority = 20
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 80
}
}
service {
name = "dmarc"
port = "http"
tags = [
"traefik.enable=true",
"traefik.http.routers.dmarc.rule=Host(`dmarc.service.nr5`)",
]
}
restart {
attempts = 5
delay = "30s"
}
task "dmarc" {
driver = "podman"
config {
image = "cr.wks/dmarc-report:latest"
ports = ["http"]
}
env {
TZ = "Europe/Berlin"
REPORT_DB_TYPE = "pgsql"
REPORT_DB_HOST = "postgres.service.nr5"
REPORT_DB_PORT = "5432"
REPORT_DB_NAME = "dmarc"
REPORT_DB_USER = "dmarc"
REPORT_DB_PASS = "4XSS4gKpheSBoMsIs"
PARSER_IMAP_PORT = "143"
PARSER_IMAP_SERVER = "116.202.109.243" #"imap.maketank.net"
PARSER_IMAP_USER = "dmarc-inbox@maketank.net"
PARSER_IMAP_PASS = "j2Kwd6mVPZw2yMLw2gIKwn"
PARSER_IMAP_READ_FOLDER = "Inbox"
PARSER_IMAP_MOVE_FOLDER = "Processed"
PARSER_IMAP_MOVE_FOLDER_ERR = "Error"
}
resources {
cpu = 100
memory = 128
}
}
}
}