{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aaae5b35-729d-4f5b-9091-585e5ce84df0",
    "slug": "wordpress-high-confi",
    "name": "Wordpress High Config",
    "description": "Deploy and Host Wordpress High Config with Railway",
    "url": "https://railway.com/deploy/wordpress-high-confi"
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "bitnami/redis:7.2.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "phantasmdigitalworks/wordpress-highperf:latest",
      "source": {
        "image": "phantasmdigitalworks/wordpress-highperf:latest"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "MySQL port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "MySQL user, used for the Data panel.",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Default database, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Root password, used for Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database to be created on image startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "URL to connect to MySQL DB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root password for MySQL DB.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default user to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "URL to connect to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public URL to connect to Redis, needed for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_RDB_POLICY",
      "service": "Redis",
      "description": "Set a RDB snapshot policy.",
      "secret": false,
      "strategy": "default",
      "default": "3600#1 300#100 60#10000"
    },
    {
      "key": "REDIS_AOF_ENABLED",
      "service": "Redis",
      "description": "Disable writing to AOF file.",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_URL",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "For volume permissions",
      "secret": false,
      "strategy": "default",
      "default": "redis://default:${REDIS_PASSWORD}@${REDISHOST}:${REDISPORT}"
    },
    {
      "key": "REDIS_HOST",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for REDIS_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "${REDISHOST}"
    },
    {
      "key": "REDIS_PORT",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for REDIS_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "${REDISPORT}"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "${REDIS_PASSWORD}"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "WORDPRESS_DEBUG",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Redis from Railway",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WORDPRESS_DB_HOST",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for WORDPRESS_DB_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "${MYSQLHOST}:${MYSQLPORT}"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for WORDPRESS_DB_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "${MYSQLDATABASE}"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for WORDPRESS_DB_USER.",
      "secret": false,
      "strategy": "default",
      "default": "${MYSQLUSER}"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for WORDPRESS_DB_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "${MYSQLPASSWORD}"
    },
    {
      "key": "WORDPRESS_TABLE_PREFIX",
      "service": "phantasmdigitalworks/wordpress-highperf:latest",
      "description": "Provide a value for WORDPRESS_TABLE_PREFIX.",
      "secret": false,
      "strategy": "default",
      "default": "wp_"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wordpress-high-confi"
      }
    },
    "cli": "railway deploy --template wordpress-high-confi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aaae5b35-729d-4f5b-9091-585e5ce84df0",
            "serializedConfig": {
              "services": {
                "5492e268-ca59-4725-8622-ff07aab5ab33": {
                  "icon": "https://devicons.railway.app/i/mysql.svg",
                  "name": "MySQL",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0",
                    "healthcheckPath": null,
                    "requiredMountPath": "/var/lib/mysql"
                  },
                  "source": {
                    "image": "mysql:9"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "MySQL port.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL user, used for the Data panel.",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "URL to connect to MySQL.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Default database, used for Data panel.",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Root password, used for Data panel.",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database to be created on image startup.",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "description": "URL to connect to MySQL DB, used for Data panel.",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL DB.",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "3306": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "5492e268-ca59-4725-8622-ff07aab5ab33": {
                      "mountPath": "/var/lib/mysql"
                    }
                  },
                  "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
                    ]
                  }
                },
                "8e39eaa1-2fce-4ca4-815d-88565bab7895": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/bitnami"
                  },
                  "source": {
                    "image": "bitnami/redis:7.2.5"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default user to connect to Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Redis over the private network.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "${{ REDIS_PASSWORD }}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public URL to connect to Redis, needed for the Data panel.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    },
                    "REDIS_RDB_POLICY": {
                      "description": "Set a RDB snapshot policy.",
                      "defaultValue": "3600#1 300#100 60#10000"
                    },
                    "REDIS_AOF_ENABLED": {
                      "description": "Disable writing to AOF file.",
                      "defaultValue": "no"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "8e39eaa1-2fce-4ca4-815d-88565bab7895": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "92b70687-b34d-47f5-8d11-fb08441f138a": {
                  "name": "phantasmdigitalworks/wordpress-highperf:latest",
                  "source": {
                    "image": "phantasmdigitalworks/wordpress-highperf:latest"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "description": "For volume permissions",
                      "defaultValue": "redis://default:${REDIS_PASSWORD}@${REDISHOST}:${REDISPORT}"
                    },
                    "REDIS_HOST": {
                      "defaultValue": "${REDISHOST}"
                    },
                    "REDIS_PORT": {
                      "defaultValue": "${REDISPORT}"
                    },
                    "REDIS_PASSWORD": {
                      "defaultValue": "${REDIS_PASSWORD}"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "WORDPRESS_DEBUG": {
                      "description": "Redis from Railway",
                      "defaultValue": "true"
                    },
                    "WORDPRESS_DB_HOST": {
                      "defaultValue": "${MYSQLHOST}:${MYSQLPORT}"
                    },
                    "WORDPRESS_DB_NAME": {
                      "defaultValue": "${MYSQLDATABASE}"
                    },
                    "WORDPRESS_DB_USER": {
                      "defaultValue": "${MYSQLUSER}"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "defaultValue": "${MYSQLPASSWORD}"
                    },
                    "WORDPRESS_TABLE_PREFIX": {
                      "defaultValue": "wp_"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T10:14:47.278Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T06:42:23.302Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_5fa5af0d26ed40ddaa42",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,SUCCESS,FAILED"
      }
    ]
  }
}
