{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1723d48d-934c-48e1-b7b2-2c06cfc4dbbf",
    "slug": "wordpress-pro",
    "name": "WordPress Pro | Redis Cache, Nightly Backups, Secure Setup",
    "description": "WordPress with Redis object cache, nightly backups and no open installer",
    "url": "https://railway.com/deploy/wordpress-pro",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/wordpress-railway"
    }
  },
  "services": [
    {
      "name": "WordPress",
      "source": {
        "repo": "https://github.com/nomideusz/wordpress-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.2-alpine"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.8.9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "WordPress",
      "description": "Port Apache listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "S3_BUCKET",
      "service": "WordPress",
      "description": "Backup bucket name. Empty = no nightly backups",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "WordPress",
      "description": "Backup bucket region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "WordPress",
      "description": "Nightly backups go to the bundled bucket - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WP_REDIS_HOST",
      "service": "WordPress",
      "description": "Redis object cache host. Empty = no object cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WP_REDIS_PORT",
      "service": "WordPress",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "WP_ADMIN_EMAIL",
      "service": "WordPress",
      "description": "Admin email, set on first boot only - change it in Settings > General",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "WordPress",
      "description": "Backup bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_HOST",
      "service": "WordPress",
      "description": "MariaDB host - private network only, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "WordPress",
      "description": "Database name - wired to the bundled MariaDB, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "WordPress",
      "description": "Database user - wired to the bundled MariaDB, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WP_ADMIN_PASSWORD",
      "service": "WordPress",
      "description": "Password for the 'admin' login, set on first boot only - change it in WordPress afterwards",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WP_REDIS_PASSWORD",
      "service": "WordPress",
      "description": "Redis password - wired to the bundled Redis, leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "WordPress",
      "description": "Backup bucket credentials",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "WordPress",
      "description": "Database password - wired to the bundled MariaDB, leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_USER",
      "service": "MariaDB",
      "description": "Database user for WordPress",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "MariaDB",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "MariaDB",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "Auto-generated root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "MariaDB",
      "description": "Time for MariaDB to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wordpress-pro"
      }
    },
    "cli": "railway deploy --template wordpress-pro",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1723d48d-934c-48e1-b7b2-2c06cfc4dbbf",
            "serializedConfig": {
              "buckets": {
                "92036a58-85e6-42bc-9cbe-a87f3075465c": {
                  "name": "Backups"
                }
              },
              "services": {
                "4fa411c8-d2e4-4fa2-9a0d-c8fa28c86e12": {
                  "icon": "https://raw.githubusercontent.com/WordPress/WordPress/master/wp-admin/images/wordpress-logo.svg",
                  "name": "WordPress",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/wordpress-railway",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Apache listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "S3_BUCKET": {
                      "isOptional": true,
                      "description": "Backup bucket name. Empty = no nightly backups",
                      "defaultValue": "${{Backups.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": true,
                      "description": "Backup bucket region",
                      "defaultValue": "${{Backups.REGION}}"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": true,
                      "description": "Nightly backups go to the bundled bucket - leave as is",
                      "defaultValue": "${{Backups.ENDPOINT}}"
                    },
                    "WP_REDIS_HOST": {
                      "isOptional": true,
                      "description": "Redis object cache host. Empty = no object cache",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "WP_REDIS_PORT": {
                      "isOptional": true,
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "WP_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Admin email, set on first boot only - change it in Settings > General",
                      "defaultValue": "admin@example.com"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": true,
                      "description": "Backup bucket credentials",
                      "defaultValue": "${{Backups.ACCESS_KEY_ID}}"
                    },
                    "WORDPRESS_DB_HOST": {
                      "isOptional": false,
                      "description": "MariaDB host - private network only, leave as is",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "WORDPRESS_DB_NAME": {
                      "isOptional": false,
                      "description": "Database name - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_DATABASE}}"
                    },
                    "WORDPRESS_DB_USER": {
                      "isOptional": false,
                      "description": "Database user - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_USER}}"
                    },
                    "WP_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the 'admin' login, set on first boot only - change it in WordPress afterwards",
                      "defaultValue": "{{WP_ADMIN_PASSWORD}}"
                    },
                    "WP_REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Redis password - wired to the bundled Redis, leave as is",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": true,
                      "description": "Backup bucket credentials",
                      "defaultValue": "${{Backups.SECRET_ACCESS_KEY}}"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "4fa411c8-d2e4-4fa2-9a0d-c8fa28c86e12": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "e68fa26b-88da-48b2-a05c-71c0d28ad72f": {
                  "icon": "https://devicons.railway.com/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save '' --appendonly no --maxmemory 128mb --maxmemory-policy allkeys-lru\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10.2-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  }
                },
                "f0b780cb-f797-4c27-8733-7cb8f67e796c": {
                  "icon": "https://raw.githubusercontent.com/docker-library/docs/master/mariadb/logo.png",
                  "name": "MariaDB",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --datadir=/var/lib/mysql/data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.8.9"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "isOptional": false,
                      "description": "Database user for WordPress",
                      "defaultValue": "wordpress"
                    },
                    "MARIADB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "wordpress"
                    },
                    "MARIADB_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated root password",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for MariaDB to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "f0b780cb-f797-4c27-8733-7cb8f67e796c": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "WordPress",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-05T21:02:21.997Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7fb1f41c1e48415ebbe6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
