{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4d0b44a3-f0e2-4fd1-8107-a57a0df294ea",
    "slug": "sure-finance",
    "name": "Sure",
    "description": "Personal finance app for net worth, budgets and transactions",
    "url": "https://railway.com/deploy/sure-finance",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/sure-railway"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "worker",
      "source": {
        "repo": "https://github.com/gridalpha/sure-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "sure",
      "source": {
        "repo": "https://github.com/gridalpha/sure-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DB_HOST",
      "service": "worker",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "worker",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_URL",
      "service": "worker",
      "description": "Sidekiq queues and cron schedule",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_DOMAIN",
      "service": "worker",
      "description": "Public host for generated links",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_DB",
      "service": "worker",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SELF_HOSTED",
      "service": "worker",
      "description": "Enables the self-hosting feature set",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "POSTGRES_USER",
      "service": "worker",
      "description": "Database role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ONBOARDING_STATE",
      "service": "worker",
      "description": "Kept in step with the web service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GENERIC_S3_BUCKET",
      "service": "worker",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GENERIC_S3_REGION",
      "service": "worker",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "worker",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "worker",
      "description": "Sidekiq concurrency and database pool size",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "GENERIC_S3_ENDPOINT",
      "service": "worker",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECURITIES_PROVIDER",
      "service": "worker",
      "description": "Free security prices, no API key",
      "secret": false,
      "strategy": "default",
      "default": "yahoo_finance"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "worker",
      "description": "Store uploads in object storage",
      "secret": false,
      "strategy": "default",
      "default": "generic_s3"
    },
    {
      "key": "EXCHANGE_RATE_PROVIDER",
      "service": "worker",
      "description": "Free rates, no API key needed",
      "secret": false,
      "strategy": "default",
      "default": "yahoo_finance"
    },
    {
      "key": "GENERIC_S3_ACCESS_KEY_ID",
      "service": "worker",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REQUIRE_EMAIL_CONFIRMATION",
      "service": "worker",
      "description": "Keep false until SMTP is configured",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GENERIC_S3_FORCE_PATH_STYLE",
      "service": "worker",
      "description": "Required addressing style for this endpoint",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GENERIC_S3_SECRET_ACCESS_KEY",
      "service": "worker",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "worker",
      "description": "Must match the web service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "sure",
      "description": "Puma listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DB_HOST",
      "service": "sure",
      "description": "Private Postgres hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PORT",
      "service": "sure",
      "description": "Postgres port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_URL",
      "service": "sure",
      "description": "Sidekiq queues and Rails cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_DOMAIN",
      "service": "sure",
      "description": "Public host for links and WebAuthn",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_DB",
      "service": "sure",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SELF_HOSTED",
      "service": "sure",
      "description": "Enables the self-hosting feature set",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "POSTGRES_USER",
      "service": "sure",
      "description": "Database role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "sure",
      "description": "Rails session signing key, must stay stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ONBOARDING_STATE",
      "service": "sure",
      "description": "open, closed or invite_only; close after registering",
      "secret": false,
      "strategy": "default",
      "default": "open"
    },
    {
      "key": "GENERIC_S3_BUCKET",
      "service": "sure",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GENERIC_S3_REGION",
      "service": "sure",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "sure",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILS_MAX_THREADS",
      "service": "sure",
      "description": "Puma threads and database pool size",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "GENERIC_S3_ENDPOINT",
      "service": "sure",
      "description": "S3-compatible endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECURITIES_PROVIDER",
      "service": "sure",
      "description": "Free security prices, no API key",
      "secret": false,
      "strategy": "default",
      "default": "yahoo_finance"
    },
    {
      "key": "SIDEKIQ_WEB_PASSWORD",
      "service": "sure",
      "description": "Optional basic auth password for /sidekiq",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SIDEKIQ_WEB_USERNAME",
      "service": "sure",
      "description": "Optional basic auth user for /sidekiq",
      "secret": false,
      "strategy": "default",
      "default": "sidekiq"
    },
    {
      "key": "ACTIVE_STORAGE_SERVICE",
      "service": "sure",
      "description": "Store uploads in object storage",
      "secret": false,
      "strategy": "default",
      "default": "generic_s3"
    },
    {
      "key": "EXCHANGE_RATE_PROVIDER",
      "service": "sure",
      "description": "Free rates, no API key needed",
      "secret": false,
      "strategy": "default",
      "default": "yahoo_finance"
    },
    {
      "key": "GENERIC_S3_ACCESS_KEY_ID",
      "service": "sure",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REQUIRE_EMAIL_CONFIRMATION",
      "service": "sure",
      "description": "Keep false until SMTP is configured",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "GENERIC_S3_FORCE_PATH_STYLE",
      "service": "sure",
      "description": "Required addressing style for this endpoint",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "GENERIC_S3_SECRET_ACCESS_KEY",
      "service": "sure",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY",
      "service": "sure",
      "description": "At-rest encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY",
      "service": "sure",
      "description": "Deterministic encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT",
      "service": "sure",
      "description": "Encryption key salt",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sure-finance"
      }
    },
    "cli": "railway deploy --template sure-finance",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4d0b44a3-f0e2-4fd1-8107-a57a0df294ea",
            "serializedConfig": {
              "buckets": {
                "598ee664-2be7-47f5-9105-af8017440647": {
                  "name": "sure-storage"
                }
              },
              "services": {
                "20014720-3429-4224-b945-837ec55b74ba": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.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": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "20014720-3429-4224-b945-837ec55b74ba": {
                      "mountPath": "/data"
                    }
                  }
                },
                "405ef2a1-078f-4a3e-b623-3341aa43cc10": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/sure.svg",
                  "name": "worker",
                  "deploy": {
                    "startCommand": "/rails/bin/docker-entrypoint bundle exec sidekiq",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/sure-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Sidekiq queues and cron schedule",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "APP_DOMAIN": {
                      "isOptional": false,
                      "description": "Public host for generated links",
                      "defaultValue": "${{sure.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "SELF_HOSTED": {
                      "isOptional": false,
                      "description": "Enables the self-hosting feature set",
                      "defaultValue": "true"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database role",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{sure.SECRET_KEY_BASE}}"
                    },
                    "ONBOARDING_STATE": {
                      "isOptional": false,
                      "description": "Kept in step with the web service",
                      "defaultValue": "${{sure.ONBOARDING_STATE}}"
                    },
                    "GENERIC_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{sure-storage.BUCKET}}"
                    },
                    "GENERIC_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{sure-storage.REGION}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": false,
                      "description": "Sidekiq concurrency and database pool size",
                      "defaultValue": "5"
                    },
                    "GENERIC_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{sure-storage.ENDPOINT}}"
                    },
                    "SECURITIES_PROVIDER": {
                      "isOptional": false,
                      "description": "Free security prices, no API key",
                      "defaultValue": "yahoo_finance"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Store uploads in object storage",
                      "defaultValue": "generic_s3"
                    },
                    "EXCHANGE_RATE_PROVIDER": {
                      "isOptional": false,
                      "description": "Free rates, no API key needed",
                      "defaultValue": "yahoo_finance"
                    },
                    "GENERIC_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{sure-storage.ACCESS_KEY_ID}}"
                    },
                    "REQUIRE_EMAIL_CONFIRMATION": {
                      "isOptional": false,
                      "description": "Keep false until SMTP is configured",
                      "defaultValue": "false"
                    },
                    "GENERIC_S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Required addressing style for this endpoint",
                      "defaultValue": "true"
                    },
                    "GENERIC_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{sure-storage.SECRET_ACCESS_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{sure.ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{sure.ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Must match the web service",
                      "defaultValue": "${{sure.ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  }
                },
                "ac21d63c-c431-48f0-80fa-9356f54e8f14": {
                  "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": {
                    "ac21d63c-c431-48f0-80fa-9356f54e8f14": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "c2a07c6f-534b-4dd0-a53b-e4f7f5312950": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/sure.svg",
                  "name": "sure",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/up",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/sure-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Puma listening port",
                      "defaultValue": "3000"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "Private Postgres hostname",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Sidekiq queues and Rails cache",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "APP_DOMAIN": {
                      "isOptional": false,
                      "description": "Public host for links and WebAuthn",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "SELF_HOSTED": {
                      "isOptional": false,
                      "description": "Enables the self-hosting feature set",
                      "defaultValue": "true"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database role",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails session signing key, must stay stable",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "ONBOARDING_STATE": {
                      "isOptional": false,
                      "description": "open, closed or invite_only; close after registering",
                      "defaultValue": "open"
                    },
                    "GENERIC_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{sure-storage.BUCKET}}"
                    },
                    "GENERIC_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{sure-storage.REGION}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "RAILS_MAX_THREADS": {
                      "isOptional": false,
                      "description": "Puma threads and database pool size",
                      "defaultValue": "5"
                    },
                    "GENERIC_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint",
                      "defaultValue": "${{sure-storage.ENDPOINT}}"
                    },
                    "SECURITIES_PROVIDER": {
                      "isOptional": false,
                      "description": "Free security prices, no API key",
                      "defaultValue": "yahoo_finance"
                    },
                    "SIDEKIQ_WEB_PASSWORD": {
                      "isOptional": true,
                      "description": "Optional basic auth password for /sidekiq",
                      "defaultValue": "{{SIDEKIQ_WEB_PASSWORD}}"
                    },
                    "SIDEKIQ_WEB_USERNAME": {
                      "isOptional": true,
                      "description": "Optional basic auth user for /sidekiq",
                      "defaultValue": "sidekiq"
                    },
                    "ACTIVE_STORAGE_SERVICE": {
                      "isOptional": false,
                      "description": "Store uploads in object storage",
                      "defaultValue": "generic_s3"
                    },
                    "EXCHANGE_RATE_PROVIDER": {
                      "isOptional": false,
                      "description": "Free rates, no API key needed",
                      "defaultValue": "yahoo_finance"
                    },
                    "GENERIC_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{sure-storage.ACCESS_KEY_ID}}"
                    },
                    "REQUIRE_EMAIL_CONFIRMATION": {
                      "isOptional": false,
                      "description": "Keep false until SMTP is configured",
                      "defaultValue": "false"
                    },
                    "GENERIC_S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Required addressing style for this endpoint",
                      "defaultValue": "true"
                    },
                    "GENERIC_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{sure-storage.SECRET_ACCESS_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY": {
                      "isOptional": false,
                      "description": "At-rest encryption key",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY": {
                      "isOptional": false,
                      "description": "Deterministic encryption key",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY}}"
                    },
                    "ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT": {
                      "isOptional": false,
                      "description": "Encryption key salt",
                      "defaultValue": "{{ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "sure",
      "method": "GET",
      "path": "/up",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T05:44:27.711Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T05:37:30.790Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_adcde19be713448dbbba",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 77,
    "typical_build_seconds": 30,
    "typical_deploy_seconds": 20,
    "typical_healthcheck_lag_seconds": 0,
    "slowest_service": "sure"
  }
}
