{
  "manifest_version": "1.0.0",
  "template": {
    "id": "eabfc418-35e8-4bea-b86b-2ca9b94850b9",
    "slug": "immich-fixed",
    "name": "Immich (fixed)",
    "description": "Open Source Google Photos alternative. Fixed and Simplified.",
    "url": "https://railway.com/deploy/immich-fixed",
    "upstream": {
      "image": "ghcr.io/imagegenius/immich:noml"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "immich",
      "source": {
        "image": "ghcr.io/imagegenius/immich:noml"
      },
      "needs_volume": true,
      "volume_mount_path": "/home",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "TZ",
      "service": "immich",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PGID",
      "service": "immich",
      "description": "Provide a value for PGID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "immich",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PUID",
      "service": "immich",
      "description": "Provide a value for PUID.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "DB_PORT",
      "service": "immich",
      "description": "Provide a value for DB_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "immich",
      "description": "Provide a value for REDIS_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "DB_HOSTNAME",
      "service": "immich",
      "description": "Provide a value for DB_HOSTNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "immich",
      "description": "Provide a value for DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "immich",
      "description": "Provide a value for DB_USERNAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOCKER_MODS",
      "service": "immich",
      "description": "Provide a value for DOCKER_MODS.",
      "secret": false,
      "strategy": "default",
      "default": "imagegenius/mods:universal-redis"
    },
    {
      "key": "REDIS_HOSTNAME",
      "service": "immich",
      "description": "Provide a value for REDIS_HOSTNAME.",
      "secret": false,
      "strategy": "default",
      "default": "localhost"
    },
    {
      "key": "UPLOAD_LOCATION",
      "service": "immich",
      "description": "Provide a value for UPLOAD_LOCATION.",
      "secret": false,
      "strategy": "default",
      "default": "/home/uploads"
    },
    {
      "key": "DB_DATABASE_NAME",
      "service": "immich",
      "description": "Provide a value for DB_DATABASE_NAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TRANSFORMERS_CACHE",
      "service": "immich",
      "description": "Provide a value for TRANSFORMERS_CACHE.",
      "secret": false,
      "strategy": "default",
      "default": "/home/config/machine-learning/models"
    },
    {
      "key": "IMMICH_MEDIA_LOCATION",
      "service": "immich",
      "description": "Provide a value for IMMICH_MEDIA_LOCATION.",
      "secret": false,
      "strategy": "default",
      "default": "/home/photos"
    },
    {
      "key": "MACHINE_LEARNING_CACHE_FOLDER",
      "service": "immich",
      "description": "Provide a value for MACHINE_LEARNING_CACHE_FOLDER.",
      "secret": false,
      "strategy": "default",
      "default": "/home/config/machine-learning/models"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "immich-fixed"
      }
    },
    "cli": "railway deploy --template immich-fixed",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "eabfc418-35e8-4bea-b86b-2ca9b94850b9",
            "serializedConfig": {
              "services": {
                "ae89d5a3-edf5-4f49-86d7-dd900f85693f": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "immich"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "ae89d5a3-edf5-4f49-86d7-dd900f85693f": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f74d40b6-c5ed-4188-8e6b-f52beb036c64": {
                  "icon": "https://lhbaovhjuhitknbfclbg.supabase.co/storage/v1/object/public/logos/immich.svg",
                  "name": "immich",
                  "source": {
                    "image": "ghcr.io/imagegenius/immich:noml"
                  },
                  "variables": {
                    "TZ": {
                      "defaultValue": "Etc/UTC"
                    },
                    "PGID": {
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "PUID": {
                      "defaultValue": "1000"
                    },
                    "DB_PORT": {
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "REDIS_PORT": {
                      "defaultValue": "6379"
                    },
                    "DB_HOSTNAME": {
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_PASSWORD": {
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "DOCKER_MODS": {
                      "defaultValue": "imagegenius/mods:universal-redis"
                    },
                    "REDIS_HOSTNAME": {
                      "defaultValue": "localhost"
                    },
                    "UPLOAD_LOCATION": {
                      "defaultValue": "/home/uploads"
                    },
                    "DB_DATABASE_NAME": {
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "TRANSFORMERS_CACHE": {
                      "defaultValue": "/home/config/machine-learning/models"
                    },
                    "IMMICH_MEDIA_LOCATION": {
                      "defaultValue": "/home/photos"
                    },
                    "MACHINE_LEARNING_CACHE_FOLDER": {
                      "defaultValue": "/home/config/machine-learning/models"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f74d40b6-c5ed-4188-8e6b-f52beb036c64": {
                      "mountPath": "/home"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T06:42:00.888Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_392eded4b49548339c62",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 115,
    "typical_build_seconds": 0,
    "typical_start_seconds": 31,
    "slowest_service": "immich"
  }
}
