Compare commits

...

2 Commits

Author SHA1 Message Date
e0c1edccbb fixes #10 - proper config for docker-registry-ui 2023-11-14 17:35:13 +01:00
00e47aa976 dmarc ui 2023-11-14 10:16:31 +01:00
2 changed files with 64 additions and 2 deletions

62
apps/dmarc/live.hcl Normal file
View File

@@ -0,0 +1,62 @@
job "dmarc" {
datacenters = [
"nummer5",
]
type = "service"
group "apps" {
count = 1
network {
mode = "host"
port "http" {
to = 8080
}
}
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"
PARSER_DB_TYPE = "pgsql"
PARSER_DB_HOST = "postgres.service.nr5"
PARSER_DB_NAME = "dmarc-srg"
PARSER_DB_USER = "dmarc"
PARSER_DB_PASSWORD = "4XSS4gKpheSBoMsIs"
PARSER_IMAP_PORT = "143"
PARSER_IMAP_HOST = "xximap.maketank.net"
PARSER_IMAP_USER = "dmarc-inbox@maketank.net"
PARSER_IMAP_PASSWORD = "j2Kwd6mVPZw2yMLw2gIKwn"
PARSER_IMAP_READ_FOLDER = "Inbox"
}
resources {
cpu = 200
memory = 512
}
}
}
}

View File

@@ -39,8 +39,8 @@ job "docker-registry-ui" {
env {
DELETE_IMAGES = "true"
REGISTRY_TITLE = "Nummer5 Reg"
NGINX_PROXY_PASS_URL_DISABLED = "http://cr.wks"
REGISTRY_URL = "http://cr.wks:5000"
NGINX_PROXY_PASS_URL = "http://cr.wks"
XX_REGISTRY_URL = "http://cr.wks:5000"
URL = "http://cr-ui.service.nr5"
SINGLE_REGISTRY = "true"
SHOW_CONTENT_DIGEST = "true"