{
  "manifest_version": "1.0.0",
  "template": {
    "id": "683bdc4f-be23-4eda-bc74-8c524cce764d",
    "slug": "immich-template",
    "name": "Immich (Loopback Fixed)",
    "description": "Self-hosted Google Photos alt, full ML+Redis, loopback bug fixed",
    "url": "https://railway.com/deploy/immich-template",
    "upstream": {
      "image": "gowardipemanish95/immich-server-proxied:release"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "immich-postgres",
      "source": {
        "image": "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "immich-machine-learning",
      "source": {
        "image": "ghcr.io/immich-app/immich-machine-learning:release"
      },
      "needs_volume": true,
      "volume_mount_path": "/cache",
      "http": false
    },
    {
      "name": "immich-server",
      "source": {
        "image": "gowardipemanish95/immich-server-proxied:release"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "immich-postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_DB",
      "service": "immich-postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_USER",
      "service": "immich-postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "immich-postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_INITDB_ARGS",
      "service": "immich-postgres",
      "description": "Provide a value for POSTGRES_INITDB_ARGS.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DB_PORT",
      "service": "immich-server",
      "description": "Postgres port - wired automatically to the bundled Postgres service.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "REDIS_PORT",
      "service": "immich-server",
      "description": "Redis port - wired automatically to the bundled Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_HOSTNAME",
      "service": "immich-server",
      "description": "Postgres host - wired automatically to the bundled Immich Postgres service (includes vector search extensions) over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PASSWORD",
      "service": "immich-server",
      "description": "Postgres password - wired automatically to the bundled Postgres service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "immich-server",
      "description": "Postgres username - wired automatically to the bundled Postgres service.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "IMMICH_HOST",
      "service": "immich-server",
      "description": "Bind address for the Immich server process. Set to 0.0.0.0 for deterministic behavior — this template's image includes a proxy sidecar that forwards external traffic to it regardless of the upstream loopback-binding bug.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "REDIS_HOSTNAME",
      "service": "immich-server",
      "description": "Redis host - wired automatically to the bundled Redis service, used for job queues and caching.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "immich-server",
      "description": "Redis password - wired automatically to the bundled Redis service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_DATABASE_NAME",
      "service": "immich-server",
      "description": "Postgres database name used by Immich.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "IMMICH_MACHINE_LEARNING_URL",
      "service": "immich-server",
      "description": "Internal URL of the bundled machine-learning service, used for smart search, facial recognition, and duplicate detection. Wired automatically over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "immich-template"
      }
    },
    "cli": "railway deploy --template immich-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "683bdc4f-be23-4eda-bc74-8c524cce764d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0f720b87-a062-447a-ae6a-9fc6b7515332": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "immich-postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "defaultValue": "{{PGDATA}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_USER}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_INITDB_ARGS": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_INITDB_ARGS}}"
                    }
                  },
                  "volumeMounts": {
                    "0f720b87-a062-447a-ae6a-9fc6b7515332": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d7cf0118-8973-4133-ac3e-77919fa75ca8": {
                  "icon": "https://devicons.railway.app/i/immich.svg",
                  "name": "immich-machine-learning",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/immich-machine-learning:release"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "d7cf0118-8973-4133-ac3e-77919fa75ca8": {
                      "mountPath": "/cache"
                    }
                  }
                },
                "e8900b1b-f9f0-4f85-831b-2d406d42e9ff": {
                  "icon": "https://devicons.railway.app/i/immich.svg",
                  "name": "immich-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/server/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "gowardipemanish95/immich-server-proxied:release"
                  },
                  "variables": {
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port - wired automatically to the bundled Postgres service.",
                      "defaultValue": "{{DB_PORT}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port - wired automatically to the bundled Redis service.",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_HOSTNAME": {
                      "isOptional": false,
                      "description": "Postgres host - wired automatically to the bundled Immich Postgres service (includes vector search extensions) over Railway's private network.",
                      "defaultValue": "${{immich-postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password - wired automatically to the bundled Postgres service.",
                      "defaultValue": "${{immich-postgres.POSTGRES_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Postgres username - wired automatically to the bundled Postgres service.",
                      "defaultValue": "{{DB_USERNAME}}"
                    },
                    "IMMICH_HOST": {
                      "isOptional": false,
                      "description": "Bind address for the Immich server process. Set to 0.0.0.0 for deterministic behavior — this template's image includes a proxy sidecar that forwards external traffic to it regardless of the upstream loopback-binding bug.",
                      "defaultValue": "{{IMMICH_HOST}}"
                    },
                    "REDIS_HOSTNAME": {
                      "isOptional": false,
                      "description": "Redis host - wired automatically to the bundled Redis service, used for job queues and caching.",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password - wired automatically to the bundled Redis service.",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "DB_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Postgres database name used by Immich.",
                      "defaultValue": "{{DB_DATABASE_NAME}}"
                    },
                    "IMMICH_MACHINE_LEARNING_URL": {
                      "isOptional": false,
                      "description": "Internal URL of the bundled machine-learning service, used for smart search, facial recognition, and duplicate detection. Wired automatically over Railway's private network.",
                      "defaultValue": "http://${{immich-machine-learning.RAILWAY_PRIVATE_DOMAIN}}:3003"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e8900b1b-f9f0-4f85-831b-2d406d42e9ff": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ec5ba716-cb50-475c-acde-4513b9fe47e6": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "{{REDISPORT}}"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "defaultValue": "{{REDISUSER}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ec5ba716-cb50-475c-acde-4513b9fe47e6": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "immich-server",
      "method": "GET",
      "path": "/api/server/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T10:14:32.962Z",
  "generator_version": "0.1.0"
}
