job "pgadmin" { group "pgadmin" { service { connect { sidecar_service { proxy { upstreams { destination_name = "postgres" local_bind_port = 5432 } } } } } network { mode = "bridge" port "http" { to = 80 } } task "pgadmin" { driver = "docker" config { image = "dpage/pgadmin4:latest" ports = ["http"] volumes = [ "local/servers.json:/pgadmin4/servers.json", "secrets/.pgpass:/home/.pgpass" ] } env = { PGADMIN_DEFAULT_EMAIL = "othrayte@gmail.com" PGADMIN_DEFAULT_PASSWORD = "admin" PGADMIN_CONFIG_WTF_CSRF_ENABLED = "False" PGADMIN_CONFIG_WTF_CSRF_CHECK_DEFAULT = "False" PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION = "False" PGADMIN_CONFIG_SERVER_MODE = "False" PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED = "False" } resources { cpu = 500 memory = 256 } service { name = "pgadmin" port = "http" tags = [ "traefik.enable=true", "traefik.http.routers.pgadmin.middlewares=auth@file", ] check { type = "http" path = "/" interval = "10s" timeout = "2s" } } template { data = <