{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c0aac11c-8726-4fdb-b539-7014c6453aea",
    "slug": "joomla-cms",
    "name": "Joomla",
    "description": "Open-source CMS for websites, portals and intranets",
    "url": "https://railway.com/deploy/joomla-cms",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/joomla-railway"
    }
  },
  "services": [
    {
      "name": "joomla",
      "source": {
        "repo": "https://github.com/gridalpha/joomla-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/www/html",
      "http": true
    },
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "joomla",
      "description": "Apache listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "joomla",
      "description": "Sessions on db 0, cache on db 1",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JOOMLA_DB_NAME",
      "service": "joomla",
      "description": "Database created at boot",
      "secret": false,
      "strategy": "default",
      "default": "joomla"
    },
    {
      "key": "JOOMLA_DB_USER",
      "service": "joomla",
      "description": "Database-scoped role Joomla runs as",
      "secret": false,
      "strategy": "default",
      "default": "joomla"
    },
    {
      "key": "MYSQL_ADMIN_URL",
      "service": "joomla",
      "description": "Admin connection, boot-time role setup only",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JOOMLA_FORCE_SSL",
      "service": "joomla",
      "description": "1 administrator only, 2 whole site",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "JOOMLA_SITE_NAME",
      "service": "joomla",
      "description": "Site name shown in titles",
      "secret": false,
      "strategy": "default",
      "default": "My Joomla Site"
    },
    {
      "key": "JOOMLA_ADMIN_USER",
      "service": "joomla",
      "description": "Administrator display name",
      "secret": false,
      "strategy": "default",
      "default": "Site Administrator"
    },
    {
      "key": "JOOMLA_ADMIN_EMAIL",
      "service": "joomla",
      "description": "Administrator email address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "JOOMLA_DB_PASSWORD",
      "service": "joomla",
      "description": "Password for that scoped role",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "JOOMLA_ADMIN_PASSWORD",
      "service": "joomla",
      "description": "Administrator password, over 12 chars",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "JOOMLA_ADMIN_USERNAME",
      "service": "joomla",
      "description": "Administrator login, letters only",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "JOOMLA_SCHEDULER_INTERVAL",
      "service": "joomla",
      "description": "Seconds between scheduled task runs",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "joomla",
      "description": "First-boot install window",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias for the superuser",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "joomla-cms"
      }
    },
    "cli": "railway deploy --template joomla-cms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c0aac11c-8726-4fdb-b539-7014c6453aea",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "177604d2-9639-47db-9593-29255709e3e1": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/joomla.svg",
                  "name": "joomla",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/joomla-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache listening port",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Sessions on db 0, cache on db 1",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "JOOMLA_DB_HOST": {
                      "isOptional": true,
                      "description": "Optional external database as host:port",
                      "defaultValue": ""
                    },
                    "JOOMLA_DB_NAME": {
                      "isOptional": false,
                      "description": "Database created at boot",
                      "defaultValue": "joomla"
                    },
                    "JOOMLA_DB_USER": {
                      "isOptional": false,
                      "description": "Database-scoped role Joomla runs as",
                      "defaultValue": "joomla"
                    },
                    "MYSQL_ADMIN_URL": {
                      "isOptional": false,
                      "description": "Admin connection, boot-time role setup only",
                      "defaultValue": "${{MySQL.MYSQL_URL}}"
                    },
                    "JOOMLA_FORCE_SSL": {
                      "isOptional": false,
                      "description": "1 administrator only, 2 whole site",
                      "defaultValue": "1"
                    },
                    "JOOMLA_SITE_NAME": {
                      "isOptional": false,
                      "description": "Site name shown in titles",
                      "defaultValue": "My Joomla Site"
                    },
                    "JOOMLA_SMTP_HOST": {
                      "isOptional": true,
                      "description": "Optional SMTP relay as host:port",
                      "defaultValue": ""
                    },
                    "JOOMLA_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Administrator display name",
                      "defaultValue": "Site Administrator"
                    },
                    "JOOMLA_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Administrator email address",
                      "defaultValue": "admin@example.com"
                    },
                    "JOOMLA_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that scoped role",
                      "defaultValue": "{{JOOMLA_DB_PASSWORD}}"
                    },
                    "JOOMLA_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Administrator password, over 12 chars",
                      "defaultValue": "{{JOOMLA_ADMIN_PASSWORD}}"
                    },
                    "JOOMLA_ADMIN_USERNAME": {
                      "isOptional": false,
                      "description": "Administrator login, letters only",
                      "defaultValue": "admin"
                    },
                    "JOOMLA_EXTENSIONS_URLS": {
                      "isOptional": true,
                      "description": "Optional extension URLs, semicolon-separated",
                      "defaultValue": ""
                    },
                    "JOOMLA_SCHEDULER_INTERVAL": {
                      "isOptional": false,
                      "description": "Seconds between scheduled task runs",
                      "defaultValue": "300"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First-boot install window",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "177604d2-9639-47db-9593-29255709e3e1": {
                      "mountPath": "/var/www/html"
                    }
                  }
                },
                "800f1e9a-ff7d-4a6d-98d9-a2b57f311e1a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/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"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias for the superuser",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "800f1e9a-ff7d-4a6d-98d9-a2b57f311e1a": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "8b741bb3-c1e8-455e-b3a2-e75065e67156": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.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"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "8b741bb3-c1e8-455e-b3a2-e75065e67156": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "joomla",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T20:32:11.174Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5c6d5c3b7724441fae41",
    "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": 61,
    "typical_start_seconds": 33,
    "slowest_service": "joomla"
  }
}
