{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0c2a491b-f64d-4aee-ac32-3afec2e197f5",
    "slug": "classicpress",
    "name": "ClassicPress",
    "description": "Open Source Content Management System for Creators.",
    "url": "https://railway.com/deploy/classicpress",
    "upstream": {
      "image": "classicpress/classicpress:php8.3-apache"
    }
  },
  "services": [
    {
      "name": "classicpress",
      "source": {
        "image": "classicpress/classicpress:php8.3-apache"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "db",
      "source": {
        "image": "mariadb:10.6"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "tcp_ports": [
        3306
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "classicpress",
      "description": "Port the WordPress web server listens on.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "WORDPRESS_DB_HOST",
      "service": "classicpress",
      "description": "Private hostname used by WordPress to connect to the MySQL database over Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WORDPRESS_DB_NAME",
      "service": "classicpress",
      "description": "Name of the MySQL database WordPress uses to store its data.",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "WORDPRESS_DB_USER",
      "service": "classicpress",
      "description": "MySQL username WordPress uses to access the database.",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "WORDPRESS_DB_PASSWORD",
      "service": "classicpress",
      "description": "MySQL password retrieved from the connected database service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLHOST",
      "service": "db",
      "description": "Private hostname used to connect to the MySQL service within Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "db",
      "description": "Default port MySQL listens on.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "db",
      "description": "MySQL username, linked to the configured MYSQL_USER variable.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_URL",
      "service": "db",
      "description": "Internal MySQL connection URL used by applications expecting a MYSQL_URL variable.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQL_USER",
      "service": "db",
      "description": "MySQL user account used by the application.",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "DATABASE_URL",
      "service": "db",
      "description": "Internal MySQL connection URL for services within Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "db",
      "description": "MySQL database name, linked to the configured MYSQL_DATABASE variable.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "db",
      "description": "MySQL password, linked to the configured MYSQL_PASSWORD variable.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "db",
      "description": "Name of the MySQL database created for the application.",
      "secret": false,
      "strategy": "default",
      "default": "wordpress"
    },
    {
      "key": "MYSQL_PASSWORD",
      "service": "db",
      "description": "Randomly generated 16-character password used to secure the MySQL user account.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "db",
      "description": "Public MySQL connection URL using Railway's TCP proxy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "db",
      "description": "Root password for MySQL, using the same password as the configured MySQL user.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "classicpress"
      }
    },
    "cli": "railway deploy --template classicpress",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0c2a491b-f64d-4aee-ac32-3afec2e197f5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6f3b37d4-3b7a-4e59-b19b-6614d88faa86": {
                  "icon": "https://dashboardicons.com/pb/api/files/community_gallery/oagfia6qnshkj72/logo_3z64xni7w9.png",
                  "name": "classicpress",
                  "deploy": {
                    "startCommand": "bash -c 'a2dismod -f mpm_event mpm_worker >/dev/null 2>&1; a2enmod mpm_prefork >/dev/null 2>&1; sed -i \"s/80/8080/g\" /etc/apache2/ports.conf /etc/apache2/sites-enabled/000-default.conf; docker-entrypoint.sh apache2-foreground & sleep 30; sed -i '\\''/stop editing/i if (isset($_SERVER[\"HTTP_X_FORWARDED_PROTO\"]) && $_SERVER[\"HTTP_X_FORWARDED_PROTO\"] === \"https\") { $_SERVER[\"HTTPS\"] = \"on\"; }'\\'' /var/www/html/wp-config.php; wait'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "classicpress/classicpress:php8.3-apache"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the WordPress web server listens on.",
                      "defaultValue": "8080"
                    },
                    "WORDPRESS_DB_HOST": {
                      "isOptional": false,
                      "description": "Private hostname used by WordPress to connect to the MySQL database over Railway's private network.",
                      "defaultValue": "${{db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "WORDPRESS_DB_NAME": {
                      "isOptional": false,
                      "description": "Name of the MySQL database WordPress uses to store its data.",
                      "defaultValue": "wordpress"
                    },
                    "WORDPRESS_DB_USER": {
                      "isOptional": false,
                      "description": "MySQL username WordPress uses to access the database.",
                      "defaultValue": "wordpress"
                    },
                    "WORDPRESS_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "MySQL password retrieved from the connected database service.",
                      "defaultValue": "${{db.MYSQL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {},
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "6f3b37d4-3b7a-4e59-b19b-6614d88faa86": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "96dba184-4a8e-4b17-be77-7096a73afa69": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mariadb.svg",
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:10.6"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Private hostname used to connect to the MySQL service within Railway's private network.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Default port MySQL listens on.",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "MySQL username, linked to the configured MYSQL_USER variable.",
                      "defaultValue": "${{MYSQL_USER}}"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Internal MySQL connection URL used by applications expecting a MYSQL_URL variable.",
                      "defaultValue": "mysql://${{MYSQL_USER}}:${{MYSQL_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_USER": {
                      "isOptional": false,
                      "description": "MySQL user account used by the application.",
                      "defaultValue": "wordpress"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal MySQL connection URL for services within Railway.",
                      "defaultValue": "mysql://${{MYSQL_USER}}:${{MYSQL_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:3306/${{MYSQL_DATABASE}}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "MySQL database name, linked to the configured MYSQL_DATABASE variable.",
                      "defaultValue": "${{MYSQL_DATABASE}}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "MySQL password, linked to the configured MYSQL_PASSWORD variable.",
                      "defaultValue": "${{MYSQL_PASSWORD}}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Name of the MySQL database created for the application.",
                      "defaultValue": "wordpress"
                    },
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated 16-character password used to secure the MySQL user account.",
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public MySQL connection URL using Railway's TCP proxy.",
                      "defaultValue": "mysql://${{MYSQL_USER}}:${{MYSQL_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{MYSQL_DATABASE}}"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password for MySQL, using the same password as the configured MySQL user.",
                      "defaultValue": "${{MYSQL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "3306": {}
                    }
                  },
                  "volumeMounts": {
                    "96dba184-4a8e-4b17-be77-7096a73afa69": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-27T22:14:44.387Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-27T19:57:30.268Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_359bfe7c78a247b4a12e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "classicpress"
  }
}
