{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7852c5ed-cb22-4108-8e82-13ef310b4184",
    "slug": "deploy-wordpress",
    "name": "WordPress | High Performance Self-Hosted CMS Server",
    "description": "One-click self-host WordPress with MariaDB | Blogs, stores, and portfolios",
    "url": "https://railway.com/deploy/deploy-wordpress",
    "upstream": {
      "image": "wordpress"
    }
  },
  "services": [
    {
      "name": "mariadb",
      "source": {
        "image": "mariadb:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "WordPress",
      "source": {
        "image": "wordpress"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MARIADB_HOST",
      "service": "mariadb",
      "description": "Internal hostname for MariaDB service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MARIADB_PORT",
      "service": "mariadb",
      "description": "Default MariaDB server port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MARIADB_USER",
      "service": "mariadb",
      "description": "Application database username",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "mariadb",
      "description": "Default database created on startup",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "mariadb",
      "description": "Generated password for MariaDB user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_PUBLIC_URL",
      "service": "mariadb",
      "description": "External MariaDB connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_PRIVATE_URL",
      "service": "mariadb",
      "description": "Internal MariaDB connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_PUBLIC_HOST",
      "service": "mariadb",
      "description": "Public TCP proxy hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_PUBLIC_PORT",
      "service": "mariadb",
      "description": "Public TCP proxy port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "mariadb",
      "description": "Root admin password for MariaDB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "WordPress",
      "description": "HTTP server listening port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "WORDPRESS_DB_HOST",
      "service": "WordPress",
      "description": "MariaDB host and port connection",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "WordPress",
      "description": "Database name used by WordPress",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "WordPress",
      "description": "Username for WordPress database login",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_AUTH_KEY",
      "service": "WordPress",
      "description": "WordPress authentication security key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_AUTH_SALT",
      "service": "WordPress",
      "description": "Salt for authentication cookies",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_NONCE_KEY",
      "service": "WordPress",
      "description": "Key for nonce security tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_NONCE_SALT",
      "service": "WordPress",
      "description": "Salt for nonce security tokens",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "WordPress",
      "description": "Password for WordPress database user",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_CONFIG_EXTRA",
      "service": "WordPress",
      "description": "Extra WordPress runtime configuration values",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WORDPRESS_LOGGED_IN_KEY",
      "service": "WordPress",
      "description": "Key for logged-in user cookies",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_LOGGED_IN_SALT",
      "service": "WordPress",
      "description": "Salt for logged-in user cookies",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_SECURE_AUTH_KEY",
      "service": "WordPress",
      "description": "Secure authentication cookie key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_SECURE_AUTH_SALT",
      "service": "WordPress",
      "description": "Salt for secure authentication cookies",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-wordpress"
      }
    },
    "cli": "railway deploy --template deploy-wordpress",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7852c5ed-cb22-4108-8e82-13ef310b4184",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9a1bbf5e-c372-46b3-88c7-0cea14af3b4f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mariadb.svg",
                  "name": "mariadb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:latest"
                  },
                  "variables": {
                    "MARIADB_HOST": {
                      "isOptional": false,
                      "description": "Internal hostname for MariaDB service",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MARIADB_PORT": {
                      "isOptional": false,
                      "description": "Default MariaDB server port",
                      "defaultValue": "3306"
                    },
                    "MARIADB_USER": {
                      "isOptional": false,
                      "description": "Application database username",
                      "defaultValue": "railway"
                    },
                    "MARIADB_DATABASE": {
                      "isOptional": false,
                      "description": "Default database created on startup",
                      "defaultValue": "railway"
                    },
                    "MARIADB_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for MariaDB user",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "External MariaDB connection string",
                      "defaultValue": "mariadb://${{MARIADB_USER}}:${{MARIADB_PASSWORD}}@${{MARIADB_PUBLIC_HOST}}:${{MARIADB_PUBLIC_PORT}}/${{MARIADB_DATABASE}}"
                    },
                    "MARIADB_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Internal MariaDB connection string",
                      "defaultValue": "mariadb://${{MARIADB_USER}}:${{MARIADB_PASSWORD}}@${{MARIADB_HOST}}:${{MARIADB_PORT}}/${{MARIADB_DATABASE}}"
                    },
                    "MARIADB_PUBLIC_HOST": {
                      "isOptional": false,
                      "description": "Public TCP proxy hostname",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "MARIADB_PUBLIC_PORT": {
                      "isOptional": false,
                      "description": "Public TCP proxy port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root admin password for MariaDB",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "9a1bbf5e-c372-46b3-88c7-0cea14af3b4f": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "af8947da-9c71-48e8-b78b-5fa9ecc34113": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/wordpress.svg",
                  "name": "WordPress",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -eu; a2dismod mpm_event mpm_worker || true; a2enmod mpm_prefork || true; exec docker-entrypoint.sh \"$@\"' -- apache2-foreground",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wordpress"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP server listening port",
                      "defaultValue": "80"
                    },
                    "WORDPRESS_DB_HOST": {
                      "isOptional": false,
                      "description": "MariaDB host and port connection",
                      "defaultValue": "${{mariadb.MARIADB_HOST}}:${{mariadb.MARIADB_PORT}}"
                    },
                    "WORDPRESS_DB_NAME": {
                      "isOptional": false,
                      "description": "Database name used by WordPress",
                      "defaultValue": "${{mariadb.MARIADB_DATABASE}}"
                    },
                    "WORDPRESS_DB_USER": {
                      "isOptional": false,
                      "description": "Username for WordPress database login",
                      "defaultValue": "${{mariadb.MARIADB_USER}}"
                    },
                    "WORDPRESS_AUTH_KEY": {
                      "isOptional": false,
                      "description": "WordPress authentication security key",
                      "defaultValue": "{{WORDPRESS_AUTH_KEY}}"
                    },
                    "WORDPRESS_AUTH_SALT": {
                      "isOptional": false,
                      "description": "Salt for authentication cookies",
                      "defaultValue": "{{WORDPRESS_AUTH_SALT}}"
                    },
                    "WORDPRESS_NONCE_KEY": {
                      "isOptional": false,
                      "description": "Key for nonce security tokens",
                      "defaultValue": "{{WORDPRESS_NONCE_KEY}}"
                    },
                    "WORDPRESS_NONCE_SALT": {
                      "isOptional": false,
                      "description": "Salt for nonce security tokens",
                      "defaultValue": "{{WORDPRESS_NONCE_SALT}}"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for WordPress database user",
                      "defaultValue": "${{mariadb.MARIADB_PASSWORD}}"
                    },
                    "WORDPRESS_CONFIG_EXTRA": {
                      "isOptional": false,
                      "description": "Extra WordPress runtime configuration values",
                      "defaultValue": "define('DOMAIN_CURRENT_SITE','${{RAILWAY_PUBLIC_DOMAIN}}');define('WP_HOME','https://${{RAILWAY_PUBLIC_DOMAIN}}');define('WP_SITEURL','https://${{RAILWAY_PUBLIC_DOMAIN}}');"
                    },
                    "WORDPRESS_LOGGED_IN_KEY": {
                      "isOptional": false,
                      "description": "Key for logged-in user cookies",
                      "defaultValue": "{{WORDPRESS_LOGGED_IN_KEY}}"
                    },
                    "WORDPRESS_LOGGED_IN_SALT": {
                      "isOptional": false,
                      "description": "Salt for logged-in user cookies",
                      "defaultValue": "{{WORDPRESS_LOGGED_IN_SALT}}"
                    },
                    "WORDPRESS_SECURE_AUTH_KEY": {
                      "isOptional": false,
                      "description": "Secure authentication cookie key",
                      "defaultValue": "{{WORDPRESS_SECURE_AUTH_KEY}}"
                    },
                    "WORDPRESS_SECURE_AUTH_SALT": {
                      "isOptional": false,
                      "description": "Salt for secure authentication cookies",
                      "defaultValue": "{{WORDPRESS_SECURE_AUTH_SALT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "af8947da-9c71-48e8-b78b-5fa9ecc34113": {
                      "mountPath": "/var/www/html"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T18:03:13.298Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b2b0a6d283b442398519",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 105,
    "typical_build_seconds": 0,
    "typical_start_seconds": 11,
    "slowest_service": "WordPress"
  }
}
