job "immich" { group "immich" { network { mode = "bridge" port "http" { to = 2283 } } service { connect { sidecar_service { proxy { # TODO https://docs.immich.app/administration/postgres-standalone#prerequisites upstreams { destination_name = "postgres" local_bind_port = 5432 } } } } } task "immich-server" { driver = "docker" config { image = "ghcr.io/immich-app/immich-server:release" ports = ["http"] } service { name = "immich" port = "http" tags = [ "traefik.enable=true", "traefik.http.routers.immich.middlewares=auth@file", ] # Todo try GET /server/ping (https://api.immich.app/endpoints/server/pingServer) # https://github.com/immich-app/immich-charts/blob/main/charts/immich/templates/server.yaml#L57 check { name = "alive" type = "tcp" port = "http" interval = "10s" timeout = "2s" } } env { UPLOAD_LOCATION = "./library" TZ = "Australia/Melbourne" REDIS_HOSTNAME = "localhost" DB_HOSTNAME = "localhost" } volume_mount { volume = "unraid_appdata_immich" destination = "/data" read_only = false } resources { cpu = 200 memory = 1024 } template { data = <