job "netbox" { datacenters = [ "nummer5", ] type = "service" group "apps" { count = 1 network { port "http" { to = 8000 } } service { name = "netbox" port = "http" tags = [ "traefik.enable=true", "traefik.http.routers.netbox.rule=Host(`netbox.service.nr5`)", ] } volume "netbox" { type = "csi" source = "netbox" read_only = false access_mode = "single-node-writer" attachment_mode = "file-system" } restart { attempts = 5 delay = "60s" } task "netbox" { driver = "podman" volume_mount { volume = "netbox" destination = "/config" read_only = false } config { image = "docker.io/netboxcommunity/netbox" ports = ["http"] } env { TZ="Europe/Berlin" SUPERUSER_EMAIL="udo@maketank.net" SUPERUSER_PASSWORD="superu" ALLOWED_HOST="netbox.service.nr5" DB_WAIT_DEBUG=1 DB_NAME="netbox" DB_USER="netbox" DB_PASSWORD="IK$Wb5TGhphNo:-WktT" DB_HOST="postgres.service.nr5" DB_PORT="5472" REDIS_HOST="redis.service.nr5" REDIS_PORT="6379" } resources { cpu = 400 memory = 128 } } } }