{
  "manifest_version": "1.0.0",
  "template": {
    "id": "25f56a40-3a86-4382-8459-452f109a8355",
    "slug": "payload-starter",
    "name": "Payload Starter",
    "description": "Payload starter with Next.js, MongoDB, S3 storage, and blog.",
    "url": "https://railway.com/deploy/payload-starter",
    "upstream": {
      "repo_url": "https://github.com/nlvcodes/payload-starter"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "application",
      "source": {
        "repo": "https://github.com/nlvcodes/payload-starter"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "S3_API",
      "service": "application",
      "description": "S3 endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "application",
      "description": "S3 bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SITE_NAME",
      "service": "application",
      "description": "Site name used in meta tags and admin (default: Payload Starter)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DATABASE_URI",
      "service": "application",
      "description": "MongoDB connection string. Change payload-starter to your own database name if desired.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PAYLOAD_SECRET",
      "service": "application",
      "description": "Secret key for Payload authentication",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "application",
      "description": "S3 access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SITE_DESCRIPTION",
      "service": "application",
      "description": "Default site description for meta tags",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "S3_DEFAULT_REGION",
      "service": "application",
      "description": "Default region for S3.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "application",
      "description": "S3 secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_SERVER_URL",
      "service": "application",
      "description": "Public URL of your site (e.g. https://yourdomain.com)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_COPYRIGHT_HOLDER",
      "service": "application",
      "description": "Name shown in footer copyright",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PUBLIC_URL",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Automatically generated.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "payload-starter"
      }
    },
    "cli": "railway deploy --template payload-starter",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "25f56a40-3a86-4382-8459-452f109a8355",
            "serializedConfig": {
              "buckets": {
                "5e6c9529-7c68-4494-b293-45c09bd475b1": {
                  "name": "media"
                }
              },
              "services": {
                "4137616a-ee8e-4605-9805-06be3c46d05b": {
                  "icon": "https://avatars.githubusercontent.com/u/62968818?v=4",
                  "name": "application",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nlvcodes/payload-starter",
                    "rootDirectory": null
                  },
                  "variables": {
                    "S3_API": {
                      "isOptional": false,
                      "description": "S3 endpoint URL",
                      "defaultValue": "${{media.ENDPOINT}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "S3 bucket name",
                      "defaultValue": "${{media.BUCKET}}"
                    },
                    "SITE_NAME": {
                      "isOptional": false,
                      "description": "Site name used in meta tags and admin (default: Payload Starter)",
                      "defaultValue": "{{SITE_NAME}}"
                    },
                    "DATABASE_URI": {
                      "isOptional": false,
                      "description": "MongoDB connection string. Change payload-starter to your own database name if desired.",
                      "defaultValue": "${{MongoDB.MONGO_URL}}/payload-starter?authSource=admin"
                    },
                    "S3_PUBLIC_URL": {
                      "isOptional": true,
                      "description": "Public CDN URL for media (e.g. https://your-bucket.r2.dev). If not set, media is served through the app via /api/media/file/",
                      "defaultValue": ""
                    },
                    "PAYLOAD_SECRET": {
                      "isOptional": false,
                      "description": "Secret key for Payload authentication",
                      "defaultValue": "{{PAYLOAD_SECRET}}"
                    },
                    "RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Resend API key — email features are disabled if not set",
                      "defaultValue": ""
                    },
                    "EMAIL_FROM_NAME": {
                      "isOptional": true,
                      "description": "Sender name (default: value of SITE_NAME)",
                      "defaultValue": ""
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "S3 access key",
                      "defaultValue": "${{media.ACCESS_KEY_ID}}"
                    },
                    "SITE_DESCRIPTION": {
                      "isOptional": false,
                      "description": "Default site description for meta tags",
                      "defaultValue": "{{SITE_DESCRIPTION}}"
                    },
                    "S3_DEFAULT_REGION": {
                      "isOptional": false,
                      "description": "Default region for S3.",
                      "defaultValue": "${{media.REGION}}"
                    },
                    "EMAIL_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Sender email address (default: noreply@example.com)",
                      "defaultValue": ""
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "S3 secret key",
                      "defaultValue": "${{media.SECRET_ACCESS_KEY}}"
                    },
                    "NEXT_PUBLIC_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public URL of your site (e.g. https://yourdomain.com)",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_COPYRIGHT_HOLDER": {
                      "isOptional": false,
                      "description": "Name shown in footer copyright",
                      "defaultValue": "{{NEXT_PUBLIC_COPYRIGHT_HOLDER}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "b2da4bdb-f431-4d21-86cc-bc13b2e75f30": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "{{MONGOPORT}}"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Automatically generated.",
                      "defaultValue": "{{MONGO_INITDB_ROOT_USERNAME}}"
                    }
                  },
                  "volumeMounts": {
                    "b2da4bdb-f431-4d21-86cc-bc13b2e75f30": {
                      "mountPath": "/data/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "application",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0"
}
