{
  "manifest_version": "1.0.0",
  "template": {
    "id": "89a02c00-468c-45c8-b845-40de8fb24f5d",
    "slug": "wordpress-nodejsdocker",
    "name": "WordPress (MPM fix + MySQL + Node.js/Docker)",
    "description": "Supports seamless local dev (sync plugins/themes/uploads)",
    "url": "https://railway.com/deploy/wordpress-nodejsdocker",
    "upstream": {
      "repo_url": "https://github.com/deltabox-studio/wordpress-railway"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "WordPress",
      "source": {
        "repo": "https://github.com/deltabox-studio/wordpress-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Database domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "Database public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Database Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "WordPress",
      "description": "Port for the Apache server",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "WORDPRESS_DB_HOST",
      "service": "WordPress",
      "description": "WordPress Database Host URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "WordPress",
      "description": "WordPress Database Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "WordPress",
      "description": "WordPress Database User",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "WordPress",
      "description": "WordPress Database Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_CONFIG_EXTRA",
      "service": "WordPress",
      "description": "Extra config for wp-config.php file",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WORDPRESS_WEBHOOK_SECRET",
      "service": "WordPress",
      "description": "WordPress Webhook Secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wordpress-nodejsdocker"
      }
    },
    "cli": "railway deploy --template wordpress-nodejsdocker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "89a02c00-468c-45c8-b845-40de8fb24f5d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2c308f44-fa05-4732-aade-c55f32498679": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Database domain",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": true,
                      "description": "Database port",
                      "defaultValue": ""
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Database URL",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Database public URL",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Database Password",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "2c308f44-fa05-4732-aade-c55f32498679": {
                      "mountPath": "/var/lib/mysql",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  },
                  "haTemplateCode": "mysql-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "MySQL Replicas",
                      "options": [
                        2,
                        4,
                        6,
                        8
                      ],
                      "nodeLabel": "MySQL",
                      "description": "Requires odd count for quorum",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your MySQL instance to an HA cluster with Group Replication failover and HAProxy routing to the primary.",
                    "supportedImageMajorVersions": [
                      8,
                      9
                    ]
                  }
                },
                "5c5443b8-4bfc-435e-b06d-9905fd444167": {
                  "icon": "https://i.imgur.com/lDO4Ri5.png",
                  "name": "WordPress",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/deltabox-studio/wordpress-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for the Apache server",
                      "defaultValue": "80"
                    },
                    "WORDPRESS_DB_HOST": {
                      "isOptional": false,
                      "description": "WordPress Database Host URL",
                      "defaultValue": "${{MySQL.MYSQL_PRIVATE_URL}}:${{MySQL.MYSQLPORT}}"
                    },
                    "WORDPRESS_DB_NAME": {
                      "isOptional": false,
                      "description": "WordPress Database Name",
                      "defaultValue": "${{MySQL.MYSQL_DATABASE}}"
                    },
                    "WORDPRESS_DB_USER": {
                      "isOptional": false,
                      "description": "WordPress Database User",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "WordPress Database Password",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "WORDPRESS_CONFIG_EXTRA": {
                      "isOptional": false,
                      "description": "Extra config for wp-config.php file",
                      "defaultValue": "define('DOMAIN_CURRENT_SITE','${{RAILWAY_PUBLIC_DOMAIN}}');define('WP_HOME','https://${{RAILWAY_PUBLIC_DOMAIN}}');define('WP_SITEURL','https://${{RAILWAY_PUBLIC_DOMAIN}}');define('WEBHOOK_SECRET', '${{webhook${{WORDPRESS_WEBHOOK_SECRET}}');"
                    },
                    "WORDPRESS_WEBHOOK_SECRET": {
                      "description": "WordPress Webhook Secret",
                      "defaultValue": "{{WORDPRESS_WEBHOOK_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "5c5443b8-4bfc-435e-b06d-9905fd444167": {
                      "mountPath": "/var/www/html",
                      "backupSchedules": [
                        "WEEKLY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T10:14:47.278Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T22:57:46.615Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_51e298f978a94b52a363",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 117,
    "typical_build_seconds": 51,
    "typical_start_seconds": 10,
    "slowest_service": "WordPress"
  }
}
