{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9f18817c-1e1d-4946-a55e-392add5e8ab4",
    "slug": "mediawiki",
    "name": "mediawiki",
    "description": "Deploy and Host MediaWiki on Railway",
    "url": "https://railway.com/deploy/mediawiki",
    "upstream": {
      "image": "ghcr.io/wikiteq/taqasta:latest"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "wikiteq/taqasta:latest",
      "source": {
        "image": "ghcr.io/wikiteq/taqasta:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/mediawiki",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Redis private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis user",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Redis connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Database port",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "mediawiki"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "User password",
      "secret": true,
      "strategy": "default",
      "default": "mediawiki"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database  name",
      "secret": false,
      "strategy": "default",
      "default": "mediawiki"
    },
    {
      "key": "MYSQL_PUBLIC_URL",
      "service": "MySQL",
      "description": "Database public  URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Root user password",
      "secret": true,
      "strategy": "default",
      "default": "mediawiki"
    },
    {
      "key": "PORT",
      "service": "wikiteq/taqasta:latest",
      "description": "Container port",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "MW_DB_NAME",
      "service": "wikiteq/taqasta:latest",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MW_DB_PASS",
      "service": "wikiteq/taqasta:latest",
      "description": "Database password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MW_DB_TYPE",
      "service": "wikiteq/taqasta:latest",
      "description": "Database type",
      "secret": false,
      "strategy": "default",
      "default": "mysql"
    },
    {
      "key": "MW_DB_USER",
      "service": "wikiteq/taqasta:latest",
      "description": "Database user name",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MW_DB_SERVER",
      "service": "wikiteq/taqasta:latest",
      "description": "Database server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MW_SITE_LANG",
      "service": "wikiteq/taqasta:latest",
      "description": "Site language",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "MW_SITE_NAME",
      "service": "wikiteq/taqasta:latest",
      "description": "Display name of your wiki, i.e. \"MyWiki\"",
      "secret": false,
      "strategy": "default",
      "default": "MyWiki"
    },
    {
      "key": "MW_ADMIN_PASS",
      "service": "wikiteq/taqasta:latest",
      "description": "Admin  user password, min. 10 chars, i.e. \"Passsw0rd!\"",
      "secret": false,
      "strategy": "default",
      "default": "Passsw0rd!"
    },
    {
      "key": "MW_ADMIN_USER",
      "service": "wikiteq/taqasta:latest",
      "description": "Admin username, i.e. \"Admin\"",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "MW_LOAD_SKINS",
      "service": "wikiteq/taqasta:latest",
      "description": "Skins to  load",
      "secret": false,
      "strategy": "default",
      "default": "Vector,chameleon"
    },
    {
      "key": "MW_SITE_SERVER",
      "service": "wikiteq/taqasta:latest",
      "description": "Wiki public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MW_DEFAULT_SKIN",
      "service": "wikiteq/taqasta:latest",
      "description": "Default skin to use",
      "secret": false,
      "strategy": "default",
      "default": "vector"
    },
    {
      "key": "MW_ENABLE_EMAIL",
      "service": "wikiteq/taqasta:latest",
      "description": "Enable email features",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MW_REDIS_SERVERS",
      "service": "wikiteq/taqasta:latest",
      "description": "Redis cache server and port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MW_ENABLE_UPLOADS",
      "service": "wikiteq/taqasta:latest",
      "description": "Enable file uploads",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PHP_POST_MAX_SIZE",
      "service": "wikiteq/taqasta:latest",
      "description": "Max  file upload  size",
      "secret": false,
      "strategy": "default",
      "default": "100M"
    },
    {
      "key": "MW_LOAD_EXTENSIONS",
      "service": "wikiteq/taqasta:latest",
      "description": "Extensions to load",
      "secret": false,
      "strategy": "default",
      "default": "ImageMap,InputBox,MathJax,Nuke,ParserFunctions,ReplaceText,Renameuser,Scribunto,SyntaxHighlight_GeSHi,Widgets,WikiEditor,CodeEditor,VisualEditor,Elastica,CirrusSearch,Echo,Cite,ExternalData,SemanticMediaWiki"
    },
    {
      "key": "MW_MAIN_CACHE_TYPE",
      "service": "wikiteq/taqasta:latest",
      "description": "Cache type",
      "secret": false,
      "strategy": "default",
      "default": "CACHE_REDIS"
    },
    {
      "key": "MW_USE_IMAGE_MAGIC",
      "service": "wikiteq/taqasta:latest",
      "description": "Enable  ImageMagick for image conversions",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "MW_DB_INSTALLDB_PASS",
      "service": "wikiteq/taqasta:latest",
      "description": "Database password for install user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MW_DB_INSTALLDB_USER",
      "service": "wikiteq/taqasta:latest",
      "description": "Database user to install wiki",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MW_ENABLE_USER_EMAIL",
      "service": "wikiteq/taqasta:latest",
      "description": "Enable user email features",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PHP_UPLOAD_MAX_FILESIZE",
      "service": "wikiteq/taqasta:latest",
      "description": "Max file upload size",
      "secret": false,
      "strategy": "default",
      "default": "100M"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mediawiki"
      }
    },
    "cli": "railway deploy --template mediawiki",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9f18817c-1e1d-4946-a55e-392add5e8ab4",
            "serializedConfig": {
              "services": {
                "46c2c7e0-e90c-405c-9e44-5bf6eab6f075": {
                  "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 --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Redis private host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis user",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string",
                      "defaultValue": "redis://${{REDISHOST}}:${{REDISPORT}}"
                    }
                  },
                  "volumeMounts": {
                    "46c2c7e0-e90c-405c-9e44-5bf6eab6f075": {
                      "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."
                  }
                },
                "74824f4e-f7c7-40a5-8a3a-8b199a40cd06": {
                  "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  --default-authentication-plugin=caching_sha2_password --log-bin --binlog-expire-logs-seconds=172800",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "mysql:8.0"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Database host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Database port",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Connection string",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "mediawiki"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "User password",
                      "defaultValue": "mediawiki"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database  name",
                      "defaultValue": "mediawiki"
                    },
                    "MYSQL_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Database public  URL",
                      "defaultValue": "mysql://${{MYSQLUSER}}:${{MYSQL_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root user password",
                      "defaultValue": "mediawiki"
                    }
                  },
                  "volumeMounts": {
                    "74824f4e-f7c7-40a5-8a3a-8b199a40cd06": {
                      "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
                    ]
                  }
                },
                "ba0a31d8-edbc-4d08-baab-8c7780d825f2": {
                  "icon": null,
                  "name": "wikiteq/taqasta:latest",
                  "deploy": {
                    "startCommand": "bash -c \"rm -f /etc/apache2/sites-enabled/000-default.conf && rm -f /etc/apache2/sites-available/000-default.conf && rm -rf /var/www/html && /run-apache.sh\"",
                    "healthcheckPath": "/w/api.php"
                  },
                  "source": {
                    "image": "ghcr.io/wikiteq/taqasta:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Container port",
                      "defaultValue": "80"
                    },
                    "MW_DB_NAME": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{MySQL.MYSQL_DATABASE}}"
                    },
                    "MW_DB_PASS": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{MySQL.MYSQL_ROOT_PASSWORD}}"
                    },
                    "MW_DB_TYPE": {
                      "isOptional": false,
                      "description": "Database type",
                      "defaultValue": "mysql"
                    },
                    "MW_DB_USER": {
                      "isOptional": false,
                      "description": "Database user name",
                      "defaultValue": "root"
                    },
                    "MW_DB_SERVER": {
                      "isOptional": false,
                      "description": "Database server",
                      "defaultValue": "${{MySQL.MYSQLHOST}}"
                    },
                    "MW_SITE_LANG": {
                      "isOptional": false,
                      "description": "Site language",
                      "defaultValue": "en"
                    },
                    "MW_SITE_NAME": {
                      "isOptional": false,
                      "description": "Display name of your wiki, i.e. \"MyWiki\"",
                      "defaultValue": "MyWiki"
                    },
                    "MW_ADMIN_PASS": {
                      "isOptional": false,
                      "description": "Admin  user password, min. 10 chars, i.e. \"Passsw0rd!\"",
                      "defaultValue": "Passsw0rd!"
                    },
                    "MW_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Admin username, i.e. \"Admin\"",
                      "defaultValue": "Admin"
                    },
                    "MW_LOAD_SKINS": {
                      "isOptional": false,
                      "description": "Skins to  load",
                      "defaultValue": "Vector,chameleon"
                    },
                    "MW_SITE_SERVER": {
                      "isOptional": false,
                      "description": "Wiki public URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MW_DEFAULT_SKIN": {
                      "isOptional": false,
                      "description": "Default skin to use",
                      "defaultValue": "vector"
                    },
                    "MW_ENABLE_EMAIL": {
                      "isOptional": false,
                      "description": "Enable email features",
                      "defaultValue": "1"
                    },
                    "MW_REDIS_SERVERS": {
                      "isOptional": false,
                      "description": "Redis cache server and port",
                      "defaultValue": "${{Redis.REDISHOST}}:${{Redis.REDISPORT}}"
                    },
                    "MW_ENABLE_UPLOADS": {
                      "isOptional": false,
                      "description": "Enable file uploads",
                      "defaultValue": "1"
                    },
                    "PHP_POST_MAX_SIZE": {
                      "isOptional": false,
                      "description": "Max  file upload  size",
                      "defaultValue": "100M"
                    },
                    "MW_LOAD_EXTENSIONS": {
                      "isOptional": false,
                      "description": "Extensions to load",
                      "defaultValue": "ImageMap,InputBox,MathJax,Nuke,ParserFunctions,ReplaceText,Renameuser,Scribunto,SyntaxHighlight_GeSHi,Widgets,WikiEditor,CodeEditor,VisualEditor,Elastica,CirrusSearch,Echo,Cite,ExternalData,SemanticMediaWiki"
                    },
                    "MW_MAIN_CACHE_TYPE": {
                      "isOptional": false,
                      "description": "Cache type",
                      "defaultValue": "CACHE_REDIS"
                    },
                    "MW_USE_IMAGE_MAGIC": {
                      "isOptional": false,
                      "description": "Enable  ImageMagick for image conversions",
                      "defaultValue": "1"
                    },
                    "MW_DB_INSTALLDB_PASS": {
                      "isOptional": false,
                      "description": "Database password for install user",
                      "defaultValue": "${{MySQL.MYSQL_ROOT_PASSWORD}}"
                    },
                    "MW_DB_INSTALLDB_USER": {
                      "isOptional": false,
                      "description": "Database user to install wiki",
                      "defaultValue": "root"
                    },
                    "MW_ENABLE_USER_EMAIL": {
                      "isOptional": false,
                      "description": "Enable user email features",
                      "defaultValue": "1"
                    },
                    "PHP_UPLOAD_MAX_FILESIZE": {
                      "isOptional": false,
                      "description": "Max file upload size",
                      "defaultValue": "100M"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "ba0a31d8-edbc-4d08-baab-8c7780d825f2": {
                      "mountPath": "/mediawiki"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "wikiteq/taqasta:latest",
      "method": "GET",
      "path": "/w/api.php",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T20:04:54.119Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ee75ffdd279246c2bf1e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 142,
    "typical_build_seconds": 0,
    "typical_start_seconds": 81,
    "slowest_service": "wikiteq/taqasta:latest"
  }
}
