{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ab980a74-e559-44f7-8fab-e2d3a35666a7",
    "slug": "deploy-wordpress-woocommerce-store",
    "name": "WordPress WooCommerce",
    "description": "Fast WooCommerce store with Redis object cache",
    "url": "https://railway.com/deploy/deploy-wordpress-woocommerce-store",
    "upstream": {
      "image": "ghcr.io/onepush-dev/wordpress:7.1.3-php8.4@sha256:1cb7b95a5ce4ed01189fb44773773ea38ec5c5c56b0ca534f98435bda1725067"
    }
  },
  "services": [
    {
      "name": "Valkey",
      "source": {
        "image": "valkey/valkey:9.1.2-alpine@sha256:48332870af354a799964c0012ae1194a0bf2bf894eb508f945810596dc2d8d11"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:12.3.3@sha256:99c125f103f5d081ebbc9ffe064e63daf7f688ac33a5f7f29af2d7260a96debf"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "WordPress",
      "source": {
        "image": "ghcr.io/onepush-dev/wordpress:7.1.3-php8.4@sha256:1cb7b95a5ce4ed01189fb44773773ea38ec5c5c56b0ca534f98435bda1725067"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "VALKEY_URL",
      "service": "Valkey",
      "description": "Full redis:// connection URL for other services.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "VALKEY_PASSWORD",
      "service": "Valkey",
      "description": "Password Valkey requires from clients, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VALKEY_MAXMEMORY",
      "service": "Valkey",
      "description": "Memory cap for the cache; least-recently-used keys are evicted beyond it.",
      "secret": true,
      "strategy": "default",
      "default": "256mb"
    },
    {
      "key": "MARIADB_USER",
      "service": "MariaDB",
      "description": "Database user created on first boot for WordPress.",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "MariaDB",
      "description": "Database created on first boot for WordPress.",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "MariaDB",
      "description": "Password of the WordPress database user, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_AUTO_UPGRADE",
      "service": "MariaDB",
      "description": "Runs mariadb-upgrade automatically when the image version changes.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "MariaDB root password, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_INNODB_BUFFER_POOL_SIZE",
      "service": "MariaDB",
      "description": "InnoDB buffer pool (RAM for cached data and indexes); raise on bigger plans.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "PORT",
      "service": "WordPress",
      "description": "Port Apache listens on; the public domain routes here.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "WP_HOME",
      "service": "WordPress",
      "description": "Site address, defaults to the Railway domain over HTTPS. Set to https://your-domain after adding a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WP_REDIS_HOST",
      "service": "WordPress",
      "description": "Valkey host for the persistent object cache (private network).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WP_REDIS_PORT",
      "service": "WordPress",
      "description": "Valkey port for the object cache.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "PHP_MEMORY_LIMIT",
      "service": "WordPress",
      "description": "PHP memory limit per request (also WordPress's admin memory limit).",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "PHP_UPLOAD_LIMIT",
      "service": "WordPress",
      "description": "Largest file upload / POST size.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "WORDPRESS_DB_HOST",
      "service": "WordPress",
      "description": "MariaDB host:port on the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "WordPress",
      "description": "Database name, taken from the MariaDB service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "WordPress",
      "description": "Database user, taken from the MariaDB service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WP_REDIS_DISABLED",
      "service": "WordPress",
      "description": "Set true to switch the object cache off; WordPress then reads everything from MariaDB.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "WP_REDIS_PASSWORD",
      "service": "WordPress",
      "description": "Valkey password, taken from the Valkey service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PHP_OPCACHE_MEMORY",
      "service": "WordPress",
      "description": "OPcache size in MB for compiled PHP code.",
      "secret": false,
      "strategy": "default",
      "default": "256"
    },
    {
      "key": "WORDPRESS_AUTH_KEY",
      "service": "WordPress",
      "description": "Login cookie key, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_AUTH_SALT",
      "service": "WordPress",
      "description": "Salt for the login cookie, generated per deploy.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_NONCE_KEY",
      "service": "WordPress",
      "description": "Nonce (form token) key, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_NONCE_SALT",
      "service": "WordPress",
      "description": "Salt for nonces, generated per deploy.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "WordPress",
      "description": "Database password, taken from the MariaDB service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PHP_MAX_EXECUTION_TIME",
      "service": "WordPress",
      "description": "Longest a PHP request may run, in seconds (imports, backups).",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "WORDPRESS_TABLE_PREFIX",
      "service": "WordPress",
      "description": "Prefix for WordPress database tables.",
      "secret": false,
      "strategy": "default",
      "default": "wp_"
    },
    {
      "key": "WORDPRESS_LOGGED_IN_KEY",
      "service": "WordPress",
      "description": "Logged-in cookie key, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_LOGGED_IN_SALT",
      "service": "WordPress",
      "description": "Salt for the logged-in cookie, generated per deploy.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_SECURE_AUTH_KEY",
      "service": "WordPress",
      "description": "HTTPS login cookie key, generated per deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "WORDPRESS_SECURE_AUTH_SALT",
      "service": "WordPress",
      "description": "Salt for the HTTPS login cookie, generated per deploy.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-wordpress-woocommerce-store"
      }
    },
    "cli": "railway deploy --template deploy-wordpress-woocommerce-store",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ab980a74-e559-44f7-8fab-e2d3a35666a7",
            "serializedConfig": {
              "services": {
                "7146e892-451c-4f26-8fcf-6da3a26f9374": {
                  "icon": null,
                  "name": "Valkey",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'exec docker-entrypoint.sh valkey-server --requirepass \"$VALKEY_PASSWORD\" --maxmemory \"${VALKEY_MAXMEMORY:-256mb}\" --maxmemory-policy allkeys-lru --save \"\" --appendonly no'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:9.1.2-alpine@sha256:48332870af354a799964c0012ae1194a0bf2bf894eb508f945810596dc2d8d11"
                  },
                  "variables": {
                    "VALKEY_URL": {
                      "isOptional": true,
                      "description": "Full redis:// connection URL for other services.",
                      "defaultValue": "redis://default:${{VALKEY_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "VALKEY_PASSWORD": {
                      "isOptional": true,
                      "description": "Password Valkey requires from clients, generated per deploy.",
                      "defaultValue": "{{VALKEY_PASSWORD}}"
                    },
                    "VALKEY_MAXMEMORY": {
                      "isOptional": true,
                      "description": "Memory cap for the cache; least-recently-used keys are evicted beyond it.",
                      "defaultValue": "256mb"
                    }
                  }
                },
                "831bde83-1ea3-4e52-84f0-86a26c8f07c4": {
                  "icon": null,
                  "name": "MariaDB",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'exec docker-entrypoint.sh mariadbd --innodb-buffer-pool-size=\"${MARIADB_INNODB_BUFFER_POOL_SIZE:-256M}\" --max-allowed-packet=64M --skip-name-resolve'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:12.3.3@sha256:99c125f103f5d081ebbc9ffe064e63daf7f688ac33a5f7f29af2d7260a96debf"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "isOptional": true,
                      "description": "Database user created on first boot for WordPress.",
                      "defaultValue": "wordpress"
                    },
                    "MARIADB_DATABASE": {
                      "isOptional": true,
                      "description": "Database created on first boot for WordPress.",
                      "defaultValue": "wordpress"
                    },
                    "MARIADB_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of the WordPress database user, generated per deploy.",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_AUTO_UPGRADE": {
                      "isOptional": true,
                      "description": "Runs mariadb-upgrade automatically when the image version changes.",
                      "defaultValue": "1"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": true,
                      "description": "MariaDB root password, generated per deploy.",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    },
                    "MARIADB_INNODB_BUFFER_POOL_SIZE": {
                      "isOptional": true,
                      "description": "InnoDB buffer pool (RAM for cached data and indexes); raise on bigger plans.",
                      "defaultValue": "256M"
                    }
                  },
                  "volumeMounts": {
                    "831bde83-1ea3-4e52-84f0-86a26c8f07c4": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "e95b280f-f10b-4723-a6a0-9e653ca15aa2": {
                  "icon": null,
                  "name": "WordPress",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/wordpress:7.1.3-php8.4@sha256:1cb7b95a5ce4ed01189fb44773773ea38ec5c5c56b0ca534f98435bda1725067"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Apache listens on; the public domain routes here.",
                      "defaultValue": "80"
                    },
                    "WP_HOME": {
                      "isOptional": true,
                      "description": "Site address, defaults to the Railway domain over HTTPS. Set to https://your-domain after adding a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WP_REDIS_HOST": {
                      "isOptional": true,
                      "description": "Valkey host for the persistent object cache (private network).",
                      "defaultValue": "${{Valkey.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "WP_REDIS_PORT": {
                      "isOptional": true,
                      "description": "Valkey port for the object cache.",
                      "defaultValue": "6379"
                    },
                    "PHP_MEMORY_LIMIT": {
                      "isOptional": true,
                      "description": "PHP memory limit per request (also WordPress's admin memory limit).",
                      "defaultValue": "512M"
                    },
                    "PHP_UPLOAD_LIMIT": {
                      "isOptional": true,
                      "description": "Largest file upload / POST size.",
                      "defaultValue": "256M"
                    },
                    "WORDPRESS_DB_HOST": {
                      "isOptional": true,
                      "description": "MariaDB host:port on the private network.",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}:3306"
                    },
                    "WORDPRESS_DB_NAME": {
                      "isOptional": true,
                      "description": "Database name, taken from the MariaDB service.",
                      "defaultValue": "${{MariaDB.MARIADB_DATABASE}}"
                    },
                    "WORDPRESS_DB_USER": {
                      "isOptional": true,
                      "description": "Database user, taken from the MariaDB service.",
                      "defaultValue": "${{MariaDB.MARIADB_USER}}"
                    },
                    "WP_REDIS_DISABLED": {
                      "isOptional": true,
                      "description": "Set true to switch the object cache off; WordPress then reads everything from MariaDB.",
                      "defaultValue": "false"
                    },
                    "WP_REDIS_PASSWORD": {
                      "isOptional": true,
                      "description": "Valkey password, taken from the Valkey service.",
                      "defaultValue": "${{Valkey.VALKEY_PASSWORD}}"
                    },
                    "PHP_OPCACHE_MEMORY": {
                      "isOptional": true,
                      "description": "OPcache size in MB for compiled PHP code.",
                      "defaultValue": "256"
                    },
                    "WORDPRESS_AUTH_KEY": {
                      "isOptional": true,
                      "description": "Login cookie key, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_AUTH_KEY}}"
                    },
                    "WORDPRESS_AUTH_SALT": {
                      "isOptional": true,
                      "description": "Salt for the login cookie, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_AUTH_SALT}}"
                    },
                    "WORDPRESS_NONCE_KEY": {
                      "isOptional": true,
                      "description": "Nonce (form token) key, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_NONCE_KEY}}"
                    },
                    "WORDPRESS_NONCE_SALT": {
                      "isOptional": true,
                      "description": "Salt for nonces, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_NONCE_SALT}}"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "isOptional": true,
                      "description": "Database password, taken from the MariaDB service.",
                      "defaultValue": "${{MariaDB.MARIADB_PASSWORD}}"
                    },
                    "PHP_MAX_EXECUTION_TIME": {
                      "isOptional": true,
                      "description": "Longest a PHP request may run, in seconds (imports, backups).",
                      "defaultValue": "300"
                    },
                    "WORDPRESS_TABLE_PREFIX": {
                      "isOptional": true,
                      "description": "Prefix for WordPress database tables.",
                      "defaultValue": "wp_"
                    },
                    "WORDPRESS_LOGGED_IN_KEY": {
                      "isOptional": true,
                      "description": "Logged-in cookie key, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_LOGGED_IN_KEY}}"
                    },
                    "WORDPRESS_LOGGED_IN_SALT": {
                      "isOptional": true,
                      "description": "Salt for the logged-in cookie, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_LOGGED_IN_SALT}}"
                    },
                    "WORDPRESS_SECURE_AUTH_KEY": {
                      "isOptional": true,
                      "description": "HTTPS login cookie key, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_SECURE_AUTH_KEY}}"
                    },
                    "WORDPRESS_SECURE_AUTH_SALT": {
                      "isOptional": true,
                      "description": "Salt for the HTTPS login cookie, generated per deploy.",
                      "defaultValue": "{{WORDPRESS_SECURE_AUTH_SALT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "e95b280f-f10b-4723-a6a0-9e653ca15aa2": {
                      "mountPath": "/var/www/html"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "WordPress",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-21T10:14:45.258Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-21T07:04:09.588Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_85ae40c2094c437ab611",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "WordPress"
  }
}
