{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6ea5a71d-ed58-4f6f-aa9d-875fa11109a1",
    "slug": "sim-studio-1",
    "name": "Sim Studio",
    "description": "Visual builder for AI agents and automated workflows",
    "url": "https://railway.com/deploy/sim-studio-1",
    "upstream": {
      "image": "ghcr.io/simstudioai/realtime:v0.8.7"
    }
  },
  "services": [
    {
      "name": "cron",
      "source": {
        "image": "ghcr.io/simstudioai/cron:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "realtime",
      "source": {
        "image": "ghcr.io/simstudioai/realtime:v0.8.7"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "sim",
      "source": {
        "image": "ghcr.io/simstudioai/simstudio:v0.8.7"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/apps/sim/uploads",
      "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": "migrations",
      "source": {
        "image": "ghcr.io/simstudioai/migrations:v0.8.7"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "cron",
      "description": "Schedule timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "SIM_URL",
      "service": "cron",
      "description": "Private app URL for jobs",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CRON_SECRET",
      "service": "cron",
      "description": "Must match the app",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "realtime",
      "description": "Socket.IO listening port",
      "secret": false,
      "strategy": "default",
      "default": "3002"
    },
    {
      "key": "NODE_ENV",
      "service": "realtime",
      "description": "Runtime environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "realtime",
      "description": "Socket.IO adapter and pub/sub",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SIM_DB_ROLE",
      "service": "realtime",
      "description": "Selects the realtime pool profile",
      "secret": false,
      "strategy": "default",
      "default": "realtime"
    },
    {
      "key": "DATABASE_URL",
      "service": "realtime",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALLOWED_ORIGINS",
      "service": "realtime",
      "description": "Allowed WebSocket origins",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "realtime",
      "description": "Auth base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "realtime",
      "description": "Must match the app",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INTERNAL_API_SECRET",
      "service": "realtime",
      "description": "Must match the app",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_APP_URL",
      "service": "realtime",
      "description": "App origin, trusted for CORS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "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": "PORT",
      "service": "sim",
      "description": "HTTP listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "sim",
      "description": "Runtime environment",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "sim",
      "description": "Redis connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CRON_SECRET",
      "service": "sim",
      "description": "Scheduler bearer token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "sim",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "sim",
      "description": "Credential encryption, hex only",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "sim",
      "description": "Auth base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "sim",
      "description": "Needed to write to the uploads volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SOCKET_SERVER_URL",
      "service": "sim",
      "description": "Private realtime URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "API_ENCRYPTION_KEY",
      "service": "sim",
      "description": "API key encryption, hex only",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "sim",
      "description": "Session signing key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INTERNAL_API_SECRET",
      "service": "sim",
      "description": "App-to-realtime auth",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PUBLIC_APP_URL",
      "service": "sim",
      "description": "Public app origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTH_TRUSTED_PROXIES",
      "service": "sim",
      "description": "Edge hops for client IP",
      "secret": false,
      "strategy": "default",
      "default": "152.233.0.0/17,100.64.0.0/10,fd00::/8"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "sim",
      "description": "Set true after first account exists",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_SOCKET_URL",
      "service": "sim",
      "description": "Browser WebSocket origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_TELEMETRY_DISABLED",
      "service": "sim",
      "description": "Disable Next.js telemetry",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EMAIL_VERIFICATION_ENABLED",
      "service": "sim",
      "description": "No SMTP configured by default",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ADMISSION_GATE_MAX_INFLIGHT",
      "service": "sim",
      "description": "Concurrent executions per replica",
      "secret": false,
      "strategy": "default",
      "default": "500"
    },
    {
      "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": "DATABASE_URL",
      "service": "migrations",
      "description": "Schema target, runs once per deploy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sim-studio-1"
      }
    },
    "cli": "railway deploy --template sim-studio-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6ea5a71d-ed58-4f6f-aa9d-875fa11109a1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "081e66b2-6175-44c4-82dd-64210ca4a065": {
                  "icon": "https://raw.githubusercontent.com/simstudioai/sim/main/apps/sim/public/icon.svg",
                  "name": "cron",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/cron:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Schedule timezone",
                      "defaultValue": "UTC"
                    },
                    "SIM_URL": {
                      "isOptional": false,
                      "description": "Private app URL for jobs",
                      "defaultValue": "http://${{sim.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "CRON_SECRET": {
                      "isOptional": false,
                      "description": "Must match the app",
                      "defaultValue": "${{sim.CRON_SECRET}}"
                    }
                  }
                },
                "a8fa7520-6606-48a8-916e-70fd69c6d090": {
                  "icon": "https://raw.githubusercontent.com/simstudioai/sim/main/apps/sim/public/icon.svg",
                  "name": "realtime",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/realtime:v0.8.7"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Socket.IO listening port",
                      "defaultValue": "3002"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Runtime environment",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Socket.IO adapter and pub/sub",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "SIM_DB_ROLE": {
                      "isOptional": false,
                      "description": "Selects the realtime pool profile",
                      "defaultValue": "realtime"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed WebSocket origins",
                      "defaultValue": "https://${{sim.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Auth base URL",
                      "defaultValue": "https://${{sim.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Must match the app",
                      "defaultValue": "${{sim.BETTER_AUTH_SECRET}}"
                    },
                    "INTERNAL_API_SECRET": {
                      "isOptional": false,
                      "description": "Must match the app",
                      "defaultValue": "${{sim.INTERNAL_API_SECRET}}"
                    },
                    "NEXT_PUBLIC_APP_URL": {
                      "isOptional": false,
                      "description": "App origin, trusted for CORS",
                      "defaultValue": "https://${{sim.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3002": {
                        "port": 3002
                      }
                    }
                  }
                },
                "c456b3f6-a6d1-4d98-bb51-ac9da5bf0581": {
                  "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": {
                    "c456b3f6-a6d1-4d98-bb51-ac9da5bf0581": {
                      "mountPath": "/data"
                    }
                  }
                },
                "da7ba272-8be7-49c9-8a03-158293b9d576": {
                  "icon": "https://raw.githubusercontent.com/simstudioai/sim/main/apps/sim/public/icon.svg",
                  "name": "sim",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /app/apps/sim/uploads/.multipart /app/apps/sim/uploads/.staging && exec bun apps/sim/bootstrap.js'",
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/simstudio:v0.8.7"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listening port",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Runtime environment",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "CRON_SECRET": {
                      "isOptional": false,
                      "description": "Scheduler bearer token",
                      "defaultValue": "{{CRON_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Credential encryption, hex only",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Auth base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Needed to write to the uploads volume",
                      "defaultValue": "0"
                    },
                    "SOCKET_SERVER_URL": {
                      "isOptional": false,
                      "description": "Private realtime URL",
                      "defaultValue": "http://${{realtime.RAILWAY_PRIVATE_DOMAIN}}:3002"
                    },
                    "API_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "API key encryption, hex only",
                      "defaultValue": "{{API_ENCRYPTION_KEY}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Session signing key",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "INTERNAL_API_SECRET": {
                      "isOptional": false,
                      "description": "App-to-realtime auth",
                      "defaultValue": "{{INTERNAL_API_SECRET}}"
                    },
                    "NEXT_PUBLIC_APP_URL": {
                      "isOptional": false,
                      "description": "Public app origin",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTH_TRUSTED_PROXIES": {
                      "isOptional": false,
                      "description": "Edge hops for client IP",
                      "defaultValue": "152.233.0.0/17,100.64.0.0/10,fd00::/8"
                    },
                    "DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "Set true after first account exists",
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_SOCKET_URL": {
                      "isOptional": false,
                      "description": "Browser WebSocket origin",
                      "defaultValue": "https://${{realtime.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_TELEMETRY_DISABLED": {
                      "isOptional": false,
                      "description": "Disable Next.js telemetry",
                      "defaultValue": "1"
                    },
                    "EMAIL_VERIFICATION_ENABLED": {
                      "isOptional": false,
                      "description": "No SMTP configured by default",
                      "defaultValue": "false"
                    },
                    "ADMISSION_GATE_MAX_INFLIGHT": {
                      "isOptional": false,
                      "description": "Concurrent executions per replica",
                      "defaultValue": "500"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "da7ba272-8be7-49c9-8a03-158293b9d576": {
                      "mountPath": "/app/apps/sim/uploads"
                    }
                  }
                },
                "e43d587b-8824-404d-b98d-7ad41cce7d48": {
                  "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": {
                    "e43d587b-8824-404d-b98d-7ad41cce7d48": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "e52ba81f-b6aa-4339-b4c7-651d52628cf6": {
                  "icon": "https://raw.githubusercontent.com/simstudioai/sim/main/apps/sim/public/icon.svg",
                  "name": "migrations",
                  "deploy": {
                    "startCommand": "bun run db:migrate",
                    "healthcheckPath": null,
                    "restartPolicyType": "NEVER",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/simstudioai/migrations:v0.8.7"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Schema target, runs once per deploy",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "realtime",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:02:16.945Z",
  "success_rate_30d": 0.6667,
  "validation": {
    "last_run_id": "run_25b34db82cc84326a18e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 103,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "cron"
  }
}
