{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d9a92738-a408-4380-956a-3a4a420488c0",
    "slug": "classicpress-cms",
    "name": "ClassicPress | Lightweight WordPress Fork Without Blocks",
    "description": "WordPress fork that keeps the classic editor, installed before it goes live",
    "url": "https://railway.com/deploy/classicpress-cms",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/classicpress"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "ClassicPress",
      "source": {
        "repo": "https://github.com/two-workspaces/classicpress"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.8.9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ClassicPress",
      "description": "Port Apache listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CP_ADMIN_EMAIL",
      "service": "ClassicPress",
      "description": "Admin email, set on first boot only - change it in Settings > General",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "CP_ADMIN_PASSWORD",
      "service": "ClassicPress",
      "description": "Password for the 'admin' login, set on first boot only - change it in ClassicPress afterwards",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLASSICPRESS_DB_HOST",
      "service": "ClassicPress",
      "description": "MariaDB host - private network only, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CLASSICPRESS_DB_NAME",
      "service": "ClassicPress",
      "description": "Database name - wired to the bundled MariaDB, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLASSICPRESS_DB_USER",
      "service": "ClassicPress",
      "description": "Database user - wired to the bundled MariaDB, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLASSICPRESS_DB_PASSWORD",
      "service": "ClassicPress",
      "description": "Database password - wired to the bundled MariaDB, leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARIADB_USER",
      "service": "MariaDB",
      "description": "Database user for ClassicPress",
      "secret": false,
      "strategy": "default",
      "default": "classicpress"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "MariaDB",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "classicpress"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "MariaDB",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "Auto-generated root password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "MariaDB",
      "description": "Time for MariaDB to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "classicpress-cms"
      }
    },
    "cli": "railway deploy --template classicpress-cms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d9a92738-a408-4380-956a-3a4a420488c0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4928d7bc-fd6d-4ec6-a676-86972e55dfdd": {
                  "icon": "https://raw.githubusercontent.com/ClassicPress/ClassicPress-release/2.7.4/wp-admin/images/classicpress-logo.svg",
                  "name": "ClassicPress",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/classicpress",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Apache listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "CP_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Admin email, set on first boot only - change it in Settings > General",
                      "defaultValue": "admin@example.com"
                    },
                    "CP_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the 'admin' login, set on first boot only - change it in ClassicPress afterwards",
                      "defaultValue": "{{CP_ADMIN_PASSWORD}}"
                    },
                    "CLASSICPRESS_DB_HOST": {
                      "isOptional": false,
                      "description": "MariaDB host - private network only, leave as is",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CLASSICPRESS_DB_NAME": {
                      "isOptional": false,
                      "description": "Database name - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_DATABASE}}"
                    },
                    "CLASSICPRESS_DB_USER": {
                      "isOptional": false,
                      "description": "Database user - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_USER}}"
                    },
                    "CLASSICPRESS_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "4928d7bc-fd6d-4ec6-a676-86972e55dfdd": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "c7d15430-17d2-47da-b49b-fac7416d787a": {
                  "icon": "https://raw.githubusercontent.com/docker-library/docs/master/mariadb/logo.png",
                  "name": "MariaDB",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --datadir=/var/lib/mysql/data",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.8.9"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "isOptional": false,
                      "description": "Database user for ClassicPress",
                      "defaultValue": "classicpress"
                    },
                    "MARIADB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "classicpress"
                    },
                    "MARIADB_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated root password",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for MariaDB to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "c7d15430-17d2-47da-b49b-fac7416d787a": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ClassicPress",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-07T16:15:10.050Z",
  "generator_version": "0.1.0"
}
