{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3a98ca55-9e23-4b64-99eb-4b3163eeb813",
    "slug": "immich-gphotos-alternative",
    "name": "Immich | Open Source Google Photos Alternative",
    "description": "Self-host Immich. Facial recognition, mobile backup, smart search & more",
    "url": "https://railway.com/deploy/immich-gphotos-alternative",
    "upstream": {
      "image": "ghcr.io/immich-app/immich-server:release"
    }
  },
  "services": [
    {
      "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
    },
    {
      "name": "Redis",
      "source": {
        "image": "valkey/valkey:9"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Immich-ML",
      "source": {
        "image": "ghcr.io/immich-app/immich-machine-learning:release"
      },
      "needs_volume": true,
      "volume_mount_path": "/cache",
      "http": false
    },
    {
      "name": "Immich-Server",
      "source": {
        "image": "ghcr.io/immich-app/immich-server:release"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory subdirectory",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database superuser name",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Database superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_INITDB_ARGS",
      "service": "Postgres",
      "description": "Enable data checksums",
      "secret": false,
      "strategy": "default",
      "default": "--data-checksums"
    },
    {
      "key": "PORT",
      "service": "Immich-Server",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "2283"
    },
    {
      "key": "DB_PORT",
      "service": "Immich-Server",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "REDIS_PORT",
      "service": "Immich-Server",
      "description": "Valkey/Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_HOSTNAME",
      "service": "Immich-Server",
      "description": "Postgres host via private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PASSWORD",
      "service": "Immich-Server",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "Immich-Server",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOSTNAME",
      "service": "Immich-Server",
      "description": "Valkey/Redis host via private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_DATABASE_NAME",
      "service": "Immich-Server",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IMMICH_LOG_LEVEL",
      "service": "Immich-Server",
      "description": "Log verbosity level",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "IMMICH_MACHINE_LEARNING_URL",
      "service": "Immich-Server",
      "description": "ML service endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "immich-gphotos-alternative"
      }
    },
    "cli": "railway deploy --template immich-gphotos-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3a98ca55-9e23-4b64-99eb-4b3163eeb813",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "093604d6-62f1-498b-a2ae-bad0dac58cbb": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgres.svg",
                  "name": "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,
                      "description": "Data directory subdirectory",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database name",
                      "defaultValue": "immich"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database superuser name",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_INITDB_ARGS": {
                      "isOptional": false,
                      "description": "Enable data checksums",
                      "defaultValue": "--data-checksums"
                    }
                  },
                  "volumeMounts": {
                    "093604d6-62f1-498b-a2ae-bad0dac58cbb": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "46f0a7bf-05a6-457d-8530-f0dd68eb355c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:9"
                  },
                  "variables": {}
                },
                "dc40f39b-6b95-4e14-933d-c73e9b1dca6d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/immich.svg",
                  "name": "Immich-ML",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/immich-machine-learning:release"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "dc40f39b-6b95-4e14-933d-c73e9b1dca6d": {
                      "mountPath": "/cache"
                    }
                  }
                },
                "f1719dea-70a3-45ab-99a4-c2ea1d2868bd": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/immich.svg",
                  "name": "Immich-Server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/immich-server:release"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "2283"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Valkey/Redis port",
                      "defaultValue": "6379"
                    },
                    "DB_HOSTNAME": {
                      "isOptional": false,
                      "description": "Postgres host via private network",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "REDIS_HOSTNAME": {
                      "isOptional": false,
                      "description": "Valkey/Redis host via private network",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "IMMICH_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity level",
                      "defaultValue": "log"
                    },
                    "IMMICH_MACHINE_LEARNING_URL": {
                      "isOptional": false,
                      "description": "ML service endpoint",
                      "defaultValue": "http://${{Immich-ML.RAILWAY_PRIVATE_DOMAIN}}:3003"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f1719dea-70a3-45ab-99a4-c2ea1d2868bd": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T14:11:14.293Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ee1e699c911e485fa864",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 92,
    "typical_build_seconds": 0,
    "typical_start_seconds": 21,
    "slowest_service": "Immich-Server"
  }
}
