{
  "manifest_version": "1.0.0",
  "template": {
    "id": "26b4908e-e0f1-47b6-80b6-5b732c1c8f46",
    "slug": "opensaas",
    "name": "OpenSaas",
    "description": "A ready-made starter app with logins, billing and an admin panel",
    "url": "https://railway.com/deploy/opensaas",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/opensaas-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "client",
      "source": {
        "repo": "https://github.com/gridalpha/opensaas-railway"
      },
      "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": "server",
      "source": {
        "repo": "https://github.com/gridalpha/opensaas-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "client",
      "description": "Caddy static server port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REACT_APP_API_URL",
      "service": "client",
      "description": "API URL used by the browser",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "client",
      "description": "Selects the client Dockerfile",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.client"
    },
    {
      "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": "server",
      "description": "API server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NODE_ENV",
      "service": "server",
      "description": "Enables production env validation",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "SMTP_HOST",
      "service": "server",
      "description": "Mail server hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "server",
      "description": "Mail server port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "JWT_SECRET",
      "service": "server",
      "description": "Signs session tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_EMAILS",
      "service": "server",
      "description": "Comma-separated admin addresses, set before first signup",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URL",
      "service": "server",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_S3_REGION",
      "service": "server",
      "description": "Bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PASSWORD",
      "service": "server",
      "description": "SMTP auth password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_USERNAME",
      "service": "server",
      "description": "SMTP auth username",
      "secret": false,
      "strategy": "default",
      "default": "opensaas"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "server",
      "description": "Set this only to enable the AI demo",
      "secret": true,
      "strategy": "default",
      "default": "sk-not-configured"
    },
    {
      "key": "STRIPE_API_KEY",
      "service": "server",
      "description": "Set this only if you use Stripe",
      "secret": true,
      "strategy": "default",
      "default": "sk_test_not_configured"
    },
    {
      "key": "AWS_S3_ENDPOINT",
      "service": "server",
      "description": "S3 endpoint, empty for real AWS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WASP_SERVER_URL",
      "service": "server",
      "description": "Public API base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AWS_S3_FILES_BUCKET",
      "service": "server",
      "description": "Bucket name for uploads",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WASP_WEB_CLIENT_URL",
      "service": "server",
      "description": "Client origin for CORS",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AWS_S3_IAM_ACCESS_KEY",
      "service": "server",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_S3_IAM_SECRET_KEY",
      "service": "server",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STRIPE_WEBHOOK_SECRET",
      "service": "server",
      "description": "Set this only if you use Stripe",
      "secret": true,
      "strategy": "default",
      "default": "whsec_not_configured"
    },
    {
      "key": "AWS_S3_FORCE_PATH_STYLE",
      "service": "server",
      "description": "Required for browser uploads to Railway storage",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "server",
      "description": "Selects the API server Dockerfile",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.server"
    },
    {
      "key": "PAYMENTS_CREDITS_10_PLAN_ID",
      "service": "server",
      "description": "Set this only if you use payments",
      "secret": false,
      "strategy": "default",
      "default": "credits-10-plan-id"
    },
    {
      "key": "PAYMENTS_PRO_SUBSCRIPTION_PLAN_ID",
      "service": "server",
      "description": "Set this only if you use payments",
      "secret": false,
      "strategy": "default",
      "default": "pro-plan-id"
    },
    {
      "key": "PAYMENTS_HOBBY_SUBSCRIPTION_PLAN_ID",
      "service": "server",
      "description": "Set this only if you use payments",
      "secret": false,
      "strategy": "default",
      "default": "hobby-plan-id"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox port, also the health check port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Web inbox basic auth credentials",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_SMTP_AUTH",
      "service": "mailpit",
      "description": "SMTP auth credentials",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAIL_PASSWORD",
      "service": "mailpit",
      "description": "Shared SMTP password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_SMTP_AUTH_ALLOW_INSECURE",
      "service": "mailpit",
      "description": "Allow AUTH on the private network",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opensaas"
      }
    },
    "cli": "railway deploy --template opensaas",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "26b4908e-e0f1-47b6-80b6-5b732c1c8f46",
            "serializedConfig": {
              "buckets": {
                "162d9624-0874-425b-a57c-45ec836749e8": {
                  "name": "opensaas-files"
                }
              },
              "services": {
                "7169454e-b998-4946-a1dc-93d31f9a4ff4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "client",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/opensaas-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Caddy static server port",
                      "defaultValue": "8080"
                    },
                    "REACT_APP_API_URL": {
                      "isOptional": false,
                      "description": "API URL used by the browser",
                      "defaultValue": "https://${{server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the client Dockerfile",
                      "defaultValue": "Dockerfile.client"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "8bcdc556-79d1-4b53-bdb5-6a97fa0bfe89": {
                  "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": {
                    "8bcdc556-79d1-4b53-bdb5-6a97fa0bfe89": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "a1d7d275-9a4b-4b1b-b0aa-69ab9a15ba1c": {
                  "icon": "https://raw.githubusercontent.com/wasp-lang/open-saas/main/template/app/src/client/static/logo.svg",
                  "name": "server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/opensaas-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "API server listening port",
                      "defaultValue": "8080"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Enables production env validation",
                      "defaultValue": "production"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Mail server hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mail server port",
                      "defaultValue": "1025"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs session tokens",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "ADMIN_EMAILS": {
                      "isOptional": false,
                      "description": "Comma-separated admin addresses, set before first signup",
                      "defaultValue": "{{ADMIN_EMAILS}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "AWS_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket region",
                      "defaultValue": "${{opensaas-files.REGION}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": false,
                      "description": "SMTP auth password",
                      "defaultValue": "${{mailpit.MAIL_PASSWORD}}"
                    },
                    "SMTP_USERNAME": {
                      "isOptional": false,
                      "description": "SMTP auth username",
                      "defaultValue": "opensaas"
                    },
                    "OPENAI_API_KEY": {
                      "description": "Set this only to enable the AI demo",
                      "defaultValue": "sk-not-configured"
                    },
                    "STRIPE_API_KEY": {
                      "description": "Set this only if you use Stripe",
                      "defaultValue": "sk_test_not_configured"
                    },
                    "AWS_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint, empty for real AWS",
                      "defaultValue": "${{opensaas-files.ENDPOINT}}"
                    },
                    "WASP_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public API base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AWS_S3_FILES_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name for uploads",
                      "defaultValue": "${{opensaas-files.BUCKET}}"
                    },
                    "WASP_WEB_CLIENT_URL": {
                      "isOptional": false,
                      "description": "Client origin for CORS",
                      "defaultValue": "https://${{client.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AWS_S3_IAM_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{opensaas-files.ACCESS_KEY_ID}}"
                    },
                    "AWS_S3_IAM_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{opensaas-files.SECRET_ACCESS_KEY}}"
                    },
                    "STRIPE_WEBHOOK_SECRET": {
                      "description": "Set this only if you use Stripe",
                      "defaultValue": "whsec_not_configured"
                    },
                    "AWS_S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Required for browser uploads to Railway storage",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the API server Dockerfile",
                      "defaultValue": "Dockerfile.server"
                    },
                    "PAYMENTS_CREDITS_10_PLAN_ID": {
                      "description": "Set this only if you use payments",
                      "defaultValue": "credits-10-plan-id"
                    },
                    "PAYMENTS_PRO_SUBSCRIPTION_PLAN_ID": {
                      "description": "Set this only if you use payments",
                      "defaultValue": "pro-plan-id"
                    },
                    "PAYMENTS_HOBBY_SUBSCRIPTION_PLAN_ID": {
                      "description": "Set this only if you use payments",
                      "defaultValue": "hobby-plan-id"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "e4c1e19c-8a14-4ded-97a6-6274bf3af661": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox port, also the health check port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Web inbox basic auth credentials",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_SMTP_AUTH": {
                      "isOptional": false,
                      "description": "SMTP auth credentials",
                      "defaultValue": "opensaas:${{MAIL_PASSWORD}}"
                    },
                    "MAIL_PASSWORD": {
                      "description": "Shared SMTP password",
                      "defaultValue": "{{MAIL_PASSWORD}}"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_SMTP_AUTH_ALLOW_INSECURE": {
                      "isOptional": false,
                      "description": "Allow AUTH on the private network",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "e4c1e19c-8a14-4ded-97a6-6274bf3af661": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "client",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
