{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c6de05aa-dd53-4236-ba60-7cbd34288065",
    "slug": "immich-photo-server",
    "name": "Immich",
    "description": "Google Photos alternative. Self-hosted photo and video library",
    "url": "https://railway.com/deploy/immich-photo-server",
    "upstream": {
      "image": "ghcr.io/immich-app/immich-server:v3"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "immich-machine-learning",
      "source": {
        "image": "ghcr.io/immich-app/immich-machine-learning:v3"
      },
      "needs_volume": true,
      "volume_mount_path": "/cache",
      "http": false
    },
    {
      "name": "immich-server",
      "source": {
        "image": "ghcr.io/immich-app/immich-server:v3"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "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
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname, reachable only inside the project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Standard Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default ACL user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string, use this from other services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Convenience alias of the generated password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "immich-machine-learning",
      "description": "Timezone for logs",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "immich-machine-learning",
      "description": "Health check port",
      "secret": false,
      "strategy": "default",
      "default": "3003"
    },
    {
      "key": "IMMICH_HOST",
      "service": "immich-machine-learning",
      "description": "Listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "IMMICH_PORT",
      "service": "immich-machine-learning",
      "description": "Inference service port",
      "secret": false,
      "strategy": "default",
      "default": "3003"
    },
    {
      "key": "IMMICH_LOG_LEVEL",
      "service": "immich-machine-learning",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "MACHINE_LEARNING_CACHE_FOLDER",
      "service": "immich-machine-learning",
      "description": "Model cache directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/cache"
    },
    {
      "key": "MACHINE_LEARNING_REQUEST_THREADS",
      "service": "immich-machine-learning",
      "description": "Request thread pool size",
      "secret": false,
      "strategy": "default",
      "default": "8"
    },
    {
      "key": "TZ",
      "service": "immich-server",
      "description": "Timezone for jobs and logs",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "immich-server",
      "description": "Health check and proxy port",
      "secret": false,
      "strategy": "default",
      "default": "2283"
    },
    {
      "key": "DB_PORT",
      "service": "immich-server",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "IMMICH_ENV",
      "service": "immich-server",
      "description": "Runtime environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_PORT",
      "service": "immich-server",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_HOSTNAME",
      "service": "immich-server",
      "description": "Private Postgres hostname",
      "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 user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IMMICH_HOST",
      "service": "immich-server",
      "description": "Listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "IMMICH_PORT",
      "service": "immich-server",
      "description": "Application listening port",
      "secret": false,
      "strategy": "default",
      "default": "2283"
    },
    {
      "key": "REDIS_HOSTNAME",
      "service": "immich-server",
      "description": "Redis private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "immich-server",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "IMMICH_HELMET_FILE",
      "service": "immich-server",
      "description": "Enable bundled security headers",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IMMICH_TRUSTED_PROXIES",
      "service": "immich-server",
      "description": "Trusted proxy ranges for HTTPS detection",
      "secret": false,
      "strategy": "default",
      "default": "169.254.0.0/16,fe80::/10,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7,100.64.0.0/10"
    },
    {
      "key": "IMMICH_MACHINE_LEARNING_URL",
      "service": "immich-server",
      "description": "Private inference service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TZ",
      "service": "immich-postgres",
      "description": "Timezone for logs",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PGDATA",
      "service": "immich-postgres",
      "description": "Cluster directory below the mount root",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "DB_PASSWORD",
      "service": "immich-postgres",
      "description": "Database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DB_USERNAME",
      "service": "immich-postgres",
      "description": "Database superuser",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_STORAGE_TYPE",
      "service": "immich-postgres",
      "description": "Tune IO settings for SSD storage",
      "secret": false,
      "strategy": "default",
      "default": "SSD"
    },
    {
      "key": "DB_DATABASE_NAME",
      "service": "immich-postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "immich"
    },
    {
      "key": "POSTGRES_INITDB_ARGS",
      "service": "immich-postgres",
      "description": "Enable page checksums at init",
      "secret": false,
      "strategy": "default",
      "default": "--data-checksums"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "immich-photo-server"
      }
    },
    "cli": "railway deploy --template immich-photo-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c6de05aa-dd53-4236-ba60-7cbd34288065",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2e631a1f-db06-4116-a540-10cd8985e343": {
                  "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,
                      "description": "Private hostname, reachable only inside the project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Standard Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default ACL user created on first boot",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string, use this from other services",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Convenience alias of the generated password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the default user",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2e631a1f-db06-4116-a540-10cd8985e343": {
                      "mountPath": "/data"
                    }
                  }
                },
                "5c42319c-f748-4052-bd98-33a898b9023f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/immich.svg",
                  "name": "immich-machine-learning",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/immich-machine-learning:v3"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for logs",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Health check port",
                      "defaultValue": "3003"
                    },
                    "IMMICH_HOST": {
                      "isOptional": false,
                      "description": "Listen on all interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "IMMICH_PORT": {
                      "isOptional": false,
                      "description": "Inference service port",
                      "defaultValue": "3003"
                    },
                    "IMMICH_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "log"
                    },
                    "MACHINE_LEARNING_CACHE_FOLDER": {
                      "isOptional": false,
                      "description": "Model cache directory on the volume",
                      "defaultValue": "/cache"
                    },
                    "MACHINE_LEARNING_REQUEST_THREADS": {
                      "isOptional": false,
                      "description": "Request thread pool size",
                      "defaultValue": "8"
                    }
                  },
                  "volumeMounts": {
                    "5c42319c-f748-4052-bd98-33a898b9023f": {
                      "mountPath": "/cache"
                    }
                  }
                },
                "abfe37df-af49-4b23-9af6-f4236633d8a0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/immich.svg",
                  "name": "immich-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/server/ping",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/immich-server:v3"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for jobs and logs",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Health check and proxy port",
                      "defaultValue": "2283"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "IMMICH_ENV": {
                      "isOptional": false,
                      "description": "Runtime environment",
                      "defaultValue": "production"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "DB_HOSTNAME": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{immich-postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{immich-postgres.DB_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{immich-postgres.DB_USERNAME}}"
                    },
                    "IMMICH_HOST": {
                      "isOptional": false,
                      "description": "Listen on all interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "IMMICH_PORT": {
                      "isOptional": false,
                      "description": "Application listening port",
                      "defaultValue": "2283"
                    },
                    "REDIS_HOSTNAME": {
                      "isOptional": false,
                      "description": "Redis private hostname",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "DB_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{immich-postgres.DB_DATABASE_NAME}}"
                    },
                    "IMMICH_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "log"
                    },
                    "IMMICH_HELMET_FILE": {
                      "isOptional": false,
                      "description": "Enable bundled security headers",
                      "defaultValue": "true"
                    },
                    "IMMICH_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "Trusted proxy ranges for HTTPS detection",
                      "defaultValue": "169.254.0.0/16,fe80::/10,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7,100.64.0.0/10"
                    },
                    "IMMICH_MACHINE_LEARNING_URL": {
                      "isOptional": false,
                      "description": "Private inference service URL",
                      "defaultValue": "http://${{immich-machine-learning.RAILWAY_PRIVATE_DOMAIN}}:3003"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:2283": {
                        "port": 2283
                      }
                    }
                  },
                  "volumeMounts": {
                    "abfe37df-af49-4b23-9af6-f4236633d8a0": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c27770f2-e55f-405d-9832-e4b4ae3ddb1a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgres.svg",
                  "name": "immich-postgres",
                  "deploy": {
                    "startCommand": "/usr/local/bin/immich-docker-entrypoint.sh postgres -c config_file=/etc/postgresql/postgresql.conf -c dynamic_shared_memory_type=mmap",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for logs",
                      "defaultValue": "Etc/UTC"
                    },
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster directory below the mount root",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "{{DB_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Database superuser",
                      "defaultValue": "postgres"
                    },
                    "DB_STORAGE_TYPE": {
                      "isOptional": false,
                      "description": "Tune IO settings for SSD storage",
                      "defaultValue": "SSD"
                    },
                    "DB_DATABASE_NAME": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "immich"
                    },
                    "POSTGRES_INITDB_ARGS": {
                      "isOptional": false,
                      "description": "Enable page checksums at init",
                      "defaultValue": "--data-checksums"
                    }
                  },
                  "volumeMounts": {
                    "c27770f2-e55f-405d-9832-e4b4ae3ddb1a": {
                      "mountPath": "/var/lib/postgresql/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-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T17:47:57.682Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_e340fe9f607c4cc391a1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 0,
    "typical_start_seconds": 35,
    "slowest_service": "immich-server"
  }
}
