{
  "manifest_version": "1.0.0",
  "template": {
    "id": "772ab03e-0121-4e6f-9a7a-5106fb03cafc",
    "slug": "homebox-2",
    "name": "Homebox",
    "description": "Track items, locations, warranties and receipts on your own server",
    "url": "https://railway.com/deploy/homebox-2",
    "upstream": {
      "image": "caddy:2-alpine"
    }
  },
  "services": [
    {
      "name": "proxy",
      "source": {
        "image": "caddy:2-alpine"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "homebox",
      "source": {
        "image": "ghcr.io/sysadminsmedia/homebox:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "proxy",
      "description": "Public listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "UPSTREAM",
      "service": "proxy",
      "description": "Private address of the app",
      "secret": false,
      "strategy": "default",
      "default": "homebox.railway.internal:7745"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "proxy",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "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": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "homebox",
      "description": "Health-check port selector",
      "secret": false,
      "strategy": "default",
      "default": "7745"
    },
    {
      "key": "HBOX_MODE",
      "service": "homebox",
      "description": "Runtime mode",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "HBOX_WEB_PORT",
      "service": "homebox",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "7745"
    },
    {
      "key": "HBOX_LOG_LEVEL",
      "service": "homebox",
      "description": "Application log level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "homebox",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_DATABASE_HOST",
      "service": "homebox",
      "description": "Private database hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_DATABASE_PORT",
      "service": "homebox",
      "description": "Database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_DATABASE_DRIVER",
      "service": "homebox",
      "description": "Use Postgres, not SQLite",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "homebox",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_OPTIONS_HOSTNAME",
      "service": "homebox",
      "description": "Public base URL for links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HBOX_DATABASE_DATABASE",
      "service": "homebox",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_DATABASE_PASSWORD",
      "service": "homebox",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_DATABASE_SSL_MODE",
      "service": "homebox",
      "description": "Encrypt database connection",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "HBOX_DATABASE_USERNAME",
      "service": "homebox",
      "description": "Database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_AUTH_API_KEY_PEPPER",
      "service": "homebox",
      "description": "API key hashing secret, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HBOX_OPTIONS_TRUST_PROXY",
      "service": "homebox",
      "description": "Honour forwarded proxy headers",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HBOX_STORAGE_CONN_STRING",
      "service": "homebox",
      "description": "Bucket connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HBOX_STORAGE_PREFIX_PATH",
      "service": "homebox",
      "description": "Object key prefix in bucket",
      "secret": false,
      "strategy": "default",
      "default": "data"
    },
    {
      "key": "HBOX_WEB_MAX_UPLOAD_SIZE",
      "service": "homebox",
      "description": "Max upload size in MB",
      "secret": false,
      "strategy": "default",
      "default": "50"
    },
    {
      "key": "HBOX_OPTIONS_ALLOW_REGISTRATION",
      "service": "homebox",
      "description": "Set false after first signup",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HBOX_OPTIONS_GITHUB_RELEASE_CHECK",
      "service": "homebox",
      "description": "Show update notices in UI",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "homebox",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "homebox-2"
      }
    },
    "cli": "railway deploy --template homebox-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "772ab03e-0121-4e6f-9a7a-5106fb03cafc",
            "serializedConfig": {
              "buckets": {
                "f3a132f4-e320-4ab9-a5f1-9af9e811dc2f": {
                  "name": "homebox-files"
                }
              },
              "services": {
                "86188534-ec0f-4c92-ba1f-ece6d939062b": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "proxy",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf \"%s\\n\" \"{\" \"  admin off\" \"  auto_https off\" \"  servers {\" \"    trusted_proxies static 100.64.0.0/10 fd00::/8\" \"  }\" \"}\" \":$PORT {\" \"  handle /healthz {\" \"    respond 200\" \"  }\" \"  handle {\" \"    reverse_proxy $UPSTREAM {\" \"      header_up X-Real-IP {client_ip}\" \"      flush_interval -1\" \"    }\" \"  }\" \"}\" > /etc/caddy/Caddyfile; echo \"--- rendered Caddyfile ---\"; cat /etc/caddy/Caddyfile; caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile && exec caddy run --config /etc/caddy/Caddyfile --adapter caddyfile'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "caddy:2-alpine"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public listening port",
                      "defaultValue": "8080"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "Private address of the app",
                      "defaultValue": "homebox.railway.internal:7745"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "f6bfefef-89cb-415b-ac36-75fe6edcf438": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "f6bfefef-89cb-415b-ac36-75fe6edcf438": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "fdb50009-3673-46e6-998c-7f6c66ec9332": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/homebox.svg",
                  "name": "homebox",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/status",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/sysadminsmedia/homebox:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health-check port selector",
                      "defaultValue": "7745"
                    },
                    "HBOX_MODE": {
                      "isOptional": false,
                      "description": "Runtime mode",
                      "defaultValue": "production"
                    },
                    "HBOX_WEB_PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "7745"
                    },
                    "HBOX_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log level",
                      "defaultValue": "info"
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{homebox-files.ACCESS_KEY_ID}}"
                    },
                    "HBOX_DATABASE_HOST": {
                      "isOptional": false,
                      "description": "Private database hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "HBOX_DATABASE_PORT": {
                      "isOptional": false,
                      "description": "Database port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "HBOX_DATABASE_DRIVER": {
                      "isOptional": false,
                      "description": "Use Postgres, not SQLite",
                      "defaultValue": "postgres"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{homebox-files.SECRET_ACCESS_KEY}}"
                    },
                    "HBOX_OPTIONS_HOSTNAME": {
                      "isOptional": false,
                      "description": "Public base URL for links",
                      "defaultValue": "https://${{proxy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HBOX_DATABASE_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "HBOX_DATABASE_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "HBOX_DATABASE_SSL_MODE": {
                      "isOptional": false,
                      "description": "Encrypt database connection",
                      "defaultValue": "require"
                    },
                    "HBOX_DATABASE_USERNAME": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "HBOX_AUTH_API_KEY_PEPPER": {
                      "isOptional": false,
                      "description": "API key hashing secret, keep stable",
                      "defaultValue": "{{HBOX_AUTH_API_KEY_PEPPER}}"
                    },
                    "HBOX_OPTIONS_TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Honour forwarded proxy headers",
                      "defaultValue": "true"
                    },
                    "HBOX_STORAGE_CONN_STRING": {
                      "isOptional": false,
                      "description": "Bucket connection string",
                      "defaultValue": "s3://${{homebox-files.BUCKET}}?endpoint=${{homebox-files.ENDPOINT}}&region=${{homebox-files.REGION}}&use_path_style=true"
                    },
                    "HBOX_STORAGE_PREFIX_PATH": {
                      "isOptional": false,
                      "description": "Object key prefix in bucket",
                      "defaultValue": "data"
                    },
                    "HBOX_WEB_MAX_UPLOAD_SIZE": {
                      "isOptional": false,
                      "description": "Max upload size in MB",
                      "defaultValue": "50"
                    },
                    "HBOX_OPTIONS_ALLOW_REGISTRATION": {
                      "isOptional": false,
                      "description": "Set false after first signup",
                      "defaultValue": "true"
                    },
                    "HBOX_OPTIONS_GITHUB_RELEASE_CHECK": {
                      "isOptional": false,
                      "description": "Show update notices in UI",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "proxy",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T16:46:43.537Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_0e30e2493adb4c399fc5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 62,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "homebox"
  }
}
