job "dcusr-pretix" { datacenters = ["aperture"] type = "service" meta { domain = "tickets.solarracing.ie" } group "web" { network { # mode = "bridge" port "http" { to = 80 } port "db" { to = 5432 } port "redis" { to = 6379 } } service { name = "pretix-web" port = "http" tags = [ "traefik.enable=true", "traefik.port=${NOMAD_PORT_http}", "traefik.http.routers.pretix.entrypoints=web,websecure", "traefik.http.routers.pretix.rule=Host(`${NOMAD_META_domain}`)", "traefik.http.routers.pretix.tls=true", "traefik.http.routers.pretix.tls.certresolver=lets-encrypt", ] } task "pretix" { driver = "docker" config { image = "pretix/standalone:stable" ports = ["http"] volumes = [ "local/pretix.cfg:/etc/pretix/pretix.cfg", "/storage/nomad/pretix/data:/data", "/etc/timezone:/etc/timezone:ro", ] } resources { memory = 5000 cores = 1 } env { NUM_WORKERS = 1 } template { data = <