{
  "manifest_version": "1.0.0",
  "template": {
    "id": "70ddd19d-6b98-447e-83d2-f34d4a352915",
    "slug": "immich-self-hosted-google-photos",
    "name": "Immich (Self-Hosted Google Photos)",
    "description": "Self-hosted photo & video backup, a Google Photos alternative.",
    "url": "https://railway.com/deploy/immich-self-hosted-google-photos",
    "upstream": {
      "image": "ghcr.io/immich-app/immich-server:v3.1.0"
    }
  },
  "services": [
    {
      "name": "MachineLearning",
      "source": {
        "image": "ghcr.io/immich-app/immich-machine-learning:v3.1.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/cache",
      "http": false
    },
    {
      "name": "Immich",
      "source": {
        "image": "ghcr.io/immich-app/immich-server:v3.1.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "valkey/valkey:9"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "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
    }
  ],
  "required_inputs": [
    {
      "key": "IMMICH_HOST",
      "service": "MachineLearning",
      "description": "Fallback bind address for the ML service (all interfaces).",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "MACHINE_LEARNING_HOST",
      "service": "MachineLearning",
      "description": "Address the machine-learning service binds to (all interfaces).",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "TZ",
      "service": "Immich",
      "description": "Timezone (IANA) for the Immich server.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "DB_PORT",
      "service": "Immich",
      "description": "PostgreSQL port on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "REDIS_PORT",
      "service": "Immich",
      "description": "Redis/Valkey port on the private network.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_HOSTNAME",
      "service": "Immich",
      "description": "Private hostname of the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PASSWORD",
      "service": "Immich",
      "description": "Postgres password (auto-generated; shared with the database).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "Immich",
      "description": "Postgres username.",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "IMMICH_HOST",
      "service": "Immich",
      "description": "Address the Immich server binds to (all interfaces).",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "IMMICH_PORT",
      "service": "Immich",
      "description": "Port the Immich server and web UI listen on.",
      "secret": false,
      "strategy": "default",
      "default": "2283"
    },
    {
      "key": "REDIS_HOSTNAME",
      "service": "Immich",
      "description": "Private hostname of the Redis/Valkey service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_DATABASE_NAME",
      "service": "Immich",
      "description": "Postgres database name.",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "IMMICH_MACHINE_LEARNING_URL",
      "service": "Immich",
      "description": "Internal URL of the machine-learning service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory; a subdirectory so the volume's lost+found does not block init.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user name.",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database password (auto-generated).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_INITDB_ARGS",
      "service": "Postgres",
      "description": "Enables data checksums when the database cluster is initialized.",
      "secret": false,
      "strategy": "default",
      "default": "--data-checksums"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "immich-self-hosted-google-photos"
      }
    },
    "cli": "railway deploy --template immich-self-hosted-google-photos",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "70ddd19d-6b98-447e-83d2-f34d4a352915",
            "serializedConfig": {
              "services": {
                "4e42fe6e-07e1-46ae-89b6-b675865de269": {
                  "name": "MachineLearning",
                  "source": {
                    "image": "ghcr.io/immich-app/immich-machine-learning:v3.1.0"
                  },
                  "variables": {
                    "IMMICH_HOST": {
                      "description": "Fallback bind address for the ML service (all interfaces).",
                      "defaultValue": "::"
                    },
                    "MACHINE_LEARNING_HOST": {
                      "description": "Address the machine-learning service binds to (all interfaces).",
                      "defaultValue": "::"
                    }
                  },
                  "volumeMounts": {
                    "4e42fe6e-07e1-46ae-89b6-b675865de269": {
                      "mountPath": "/cache"
                    }
                  }
                },
                "61dba314-6d40-40ba-acc4-c400e2c51c6e": {
                  "name": "Immich",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/immich-server:v3.1.0"
                  },
                  "variables": {
                    "TZ": {
                      "description": "Timezone (IANA) for the Immich server.",
                      "defaultValue": "Etc/UTC"
                    },
                    "DB_PORT": {
                      "description": "PostgreSQL port on the private network.",
                      "defaultValue": "5432"
                    },
                    "REDIS_PORT": {
                      "description": "Redis/Valkey port on the private network.",
                      "defaultValue": "6379"
                    },
                    "DB_HOSTNAME": {
                      "description": "Private hostname of the Postgres service.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PASSWORD": {
                      "description": "Postgres password (auto-generated; shared with the database).",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "description": "Postgres username.",
                      "defaultValue": "immich"
                    },
                    "IMMICH_HOST": {
                      "description": "Address the Immich server binds to (all interfaces).",
                      "defaultValue": "::"
                    },
                    "IMMICH_PORT": {
                      "description": "Port the Immich server and web UI listen on.",
                      "defaultValue": "2283"
                    },
                    "REDIS_HOSTNAME": {
                      "description": "Private hostname of the Redis/Valkey service.",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_DATABASE_NAME": {
                      "description": "Postgres database name.",
                      "defaultValue": "immich"
                    },
                    "IMMICH_MACHINE_LEARNING_URL": {
                      "description": "Internal URL of the machine-learning service.",
                      "defaultValue": "http://${{MachineLearning.RAILWAY_PRIVATE_DOMAIN}}:3003"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:2283": {
                        "port": 2283
                      }
                    }
                  },
                  "volumeMounts": {
                    "61dba314-6d40-40ba-acc4-c400e2c51c6e": {
                      "mountPath": "/data"
                    }
                  }
                },
                "97dd366e-5661-4794-86d0-afe3317bc798": {
                  "name": "Redis",
                  "source": {
                    "image": "valkey/valkey:9"
                  }
                },
                "c8e6fb9d-8792-49f6-9ab9-0a4ba2a1cee1": {
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Postgres data directory; a subdirectory so the volume's lost+found does not block init.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name created on first boot.",
                      "defaultValue": "immich"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user name.",
                      "defaultValue": "immich"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Database password (auto-generated).",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_INITDB_ARGS": {
                      "description": "Enables data checksums when the database cluster is initialized.",
                      "defaultValue": "--data-checksums"
                    }
                  },
                  "volumeMounts": {
                    "c8e6fb9d-8792-49f6-9ab9-0a4ba2a1cee1": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T16:31:04.057Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_31b56fa803914a929f9f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "Immich"
  }
}
