{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8f730f0a-cd0a-4c25-860a-00094fc3e7cc",
    "slug": "wordpress-nginx-ph-1",
    "name": "Wordpress Nginx PHP-FPM Redis",
    "description": "Production-grade Wordpress 7 on PHP-FPM, mySQL & Redis",
    "url": "https://railway.com/deploy/wordpress-nginx-ph-1",
    "upstream": {
      "repo_url": "https://github.com/Eetezadi/railway-wordpress-nginx-php-fpm-redis"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Wordpress + Nginx",
      "source": {
        "repo": "https://github.com/Eetezadi/railway-wordpress-nginx-php-fpm-redis"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "phpMyAdmin",
      "source": {
        "image": "linuxserver/phpmyadmin:5.2.3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private URL of Redis.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Full DB Connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Auto Generated",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto Generated",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public URL. May deactivate.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Private URL of mySQL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Port.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "default user",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Full DB Connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Alias",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Alias",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Default name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "Public URL. Maybe deactivate.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Auto Generated",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Wordpress + Nginx",
      "description": "Port of Webserver",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "REDIS_HOST",
      "service": "Wordpress + Nginx",
      "description": "Redis Server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "Wordpress + Nginx",
      "description": "Redis Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Wordpress + Nginx",
      "description": "Redis Pass",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PHP_MEMORY_LIMIT",
      "service": "Wordpress + Nginx",
      "description": "Limit of PHP Memory. Can change.",
      "secret": false,
      "strategy": "default",
      "default": "512M"
    },
    {
      "key": "PHP_POST_MAX_SIZE",
      "service": "Wordpress + Nginx",
      "description": "PHP Post Max Size. Can change.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "Wordpress + Nginx",
      "description": "Wordpress DB. Default.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "Wordpress + Nginx",
      "description": "Wordpress DB User.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "Wordpress + Nginx",
      "description": "Wordpress DB Pass. Generated Automatically.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PHP_UPLOAD_MAX_FILESIZE",
      "service": "Wordpress + Nginx",
      "description": "Php Upload Max Filesize. Can change.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "NGINX_CLIENT_MAX_BODY_SIZE",
      "service": "Wordpress + Nginx",
      "description": "Nginx Config. Can change.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "PORT",
      "service": "phpMyAdmin",
      "description": "Port.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "PMA_HOST",
      "service": "phpMyAdmin",
      "description": "DB URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PMA_PORT",
      "service": "phpMyAdmin",
      "description": "DB Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PMA_ARBITRARY",
      "service": "phpMyAdmin",
      "description": "Provide a value for PMA_ARBITRARY.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "wordpress-nginx-ph-1"
      }
    },
    "cli": "railway deploy --template wordpress-nginx-ph-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8f730f0a-cd0a-4c25-860a-00094fc3e7cc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3284cf6e-e63f-4304-b0d7-da170626f44a": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private URL of Redis.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Full DB Connection URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Auto Generated",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto Generated",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL. May deactivate.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "3284cf6e-e63f-4304-b0d7-da170626f44a": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "37f3306c-a5c7-440d-affe-4cae8bbc3d9f": {
                  "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",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Private URL of mySQL",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Port.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "default user",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Full DB Connection URL",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Alias",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Alias",
                      "defaultValue": "${{MYSQL_ROOT_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Default name",
                      "defaultValue": "railway"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL. Maybe deactivate.",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto Generated",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "37f3306c-a5c7-440d-affe-4cae8bbc3d9f": {
                      "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
                    ]
                  }
                },
                "b3b70f38-d2c6-49f4-a5ba-5ae469640817": {
                  "icon": "https://www.freepnglogos.com/uploads/wordpress-logo-png/wordpress-logo-four-fantastic-wordpress-logos-halfblog-18.png",
                  "name": "Wordpress + Nginx",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "Eetezadi/railway-wordpress-nginx-php-fpm-redis",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of Webserver",
                      "defaultValue": "80"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Redis Server",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis Port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis Pass",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "PHP_MEMORY_LIMIT": {
                      "isOptional": false,
                      "description": "Limit of PHP Memory. Can change.",
                      "defaultValue": "512M"
                    },
                    "PHP_POST_MAX_SIZE": {
                      "isOptional": false,
                      "description": "PHP Post Max Size. Can change.",
                      "defaultValue": "256M"
                    },
                    "WORDPRESS_DB_NAME": {
                      "isOptional": false,
                      "description": "Wordpress DB. Default.",
                      "defaultValue": "${{MySQL.MYSQLDATABASE}}"
                    },
                    "WORDPRESS_DB_USER": {
                      "isOptional": false,
                      "description": "Wordpress DB User.",
                      "defaultValue": "${{MySQL.MYSQLUSER}}"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Wordpress DB Pass. Generated Automatically.",
                      "defaultValue": "${{MySQL.MYSQLPASSWORD}}"
                    },
                    "WORDPRESS_CONFIG_EXTRA": {
                      "isOptional": true,
                      "description": "Optional custom configuration for wp_config",
                      "defaultValue": ""
                    },
                    "PHP_UPLOAD_MAX_FILESIZE": {
                      "isOptional": false,
                      "description": "Php Upload Max Filesize. Can change.",
                      "defaultValue": "256M"
                    },
                    "NGINX_CLIENT_MAX_BODY_SIZE": {
                      "isOptional": false,
                      "description": "Nginx Config. Can change.",
                      "defaultValue": "256M"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "b3b70f38-d2c6-49f4-a5ba-5ae469640817": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "ef982b12-16df-4a2d-9af1-b1800f4046e6": {
                  "icon": "https://www.phpmyadmin.net/static/images/logo.png?067b638aa2a2",
                  "name": "phpMyAdmin",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"mkdir -p /config/nginx && echo 'resolver 8.8.8.8 8.8.4.4 valid=300s;' > /config/nginx/resolver.conf && /init\"",
                    "healthcheckPath": "",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "linuxserver/phpmyadmin:5.2.3",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port.",
                      "defaultValue": "80"
                    },
                    "PMA_HOST": {
                      "isOptional": false,
                      "description": "DB URL",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "PMA_PORT": {
                      "isOptional": false,
                      "description": "DB Port",
                      "defaultValue": "${{MySQL.MYSQLPORT}}"
                    },
                    "PMA_ARBITRARY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Wordpress + Nginx",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T22:49:15.328Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ab54842f67cf43e9be5d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 206,
    "typical_build_seconds": 138,
    "typical_start_seconds": 10,
    "slowest_service": "Wordpress + Nginx"
  }
}
