job "lldap" { datacenters = ["dc1"] type = "service" group "lldap" { network { mode = "bridge" port "web" { host_network = "wesher" to = 17170 } port "ldap" { host_network = "wesher" to = 3890 } } service { name = "lldap" provider = "nomad" port = "ldap" } service { name = "ldap-admin" provider = "nomad" port = "web" tags = [ "traefik.enable=true", "traefik.http.routers.ldap-admin.entryPoints=websecure", ] } task "lldap" { driver = "docker" config { image = "nitnelave/lldap:v0.4.3" ports = ["ldap", "web"] args = ["run", "--config-file", "${NOMAD_SECRETS_DIR}/lldap_config.toml"] } env = { "LLDAP_LDAP_PORT" = "${NOMAD_PORT_ldap}" "LLDAP_HTTP_PORT" = "${NOMAD_PORT_web}" } template { data = <