{
  "manifest_version": "1.0.0",
  "template": {
    "id": "eb8a338d-26bb-4ddf-958e-879e10abe18a",
    "slug": "open-web-analytics",
    "name": "Open Web Analytics | Self-Hosted Google Analytics Alternative",
    "description": "Open Web Analytics 1.14: GA-style reports, heatmaps and session replays",
    "url": "https://railway.com/deploy/open-web-analytics",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/open-web-analytics"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.8.9"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Open Web Analytics",
      "source": {
        "repo": "https://github.com/two-workspaces/open-web-analytics"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MARIADB_DATABASE",
      "service": "MariaDB",
      "description": "Database created on first start",
      "secret": false,
      "strategy": "default",
      "default": "owa"
    },
    {
      "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"
    },
    {
      "key": "PORT",
      "service": "Open Web Analytics",
      "description": "Port Apache listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DB_HOST",
      "service": "Open Web Analytics",
      "description": "MariaDB host - private network only, leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_NAME",
      "service": "Open Web Analytics",
      "description": "Database name - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OWA_URL",
      "service": "Open Web Analytics",
      "description": "OWA's address. On a custom domain, set it to https://your.domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OWA_SECRET",
      "service": "Open Web Analytics",
      "description": "Seed for OWA's keys and salts - leave as is",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_PASSWORD",
      "service": "Open Web Analytics",
      "description": "MariaDB password - wired to the bundled MariaDB, leave as is",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OWA_SITE_URL",
      "service": "Open Web Analytics",
      "description": "First website to track, created on first boot - add more in OWA",
      "secret": false,
      "strategy": "default",
      "default": "https://example.com"
    },
    {
      "key": "OWA_ADMIN_EMAIL",
      "service": "Open Web Analytics",
      "description": "Admin email, set on first boot only",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "OWA_ADMIN_PASSWORD",
      "service": "Open Web Analytics",
      "description": "Password for the 'admin' login, set on first boot only - change it in OWA afterwards",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "open-web-analytics"
      }
    },
    "cli": "railway deploy --template open-web-analytics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "eb8a338d-26bb-4ddf-958e-879e10abe18a",
            "serializedConfig": {
              "services": {
                "1f13d287-47c8-4ebe-a025-03cdf1900c44": {
                  "icon": "https://raw.githubusercontent.com/devicons/devicon/master/icons/mariadb/mariadb-original.svg",
                  "name": "MariaDB",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --datadir=/var/lib/mysql/data --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --sql-mode=NO_ENGINE_SUBSTITUTION",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mariadb:11.8.9"
                  },
                  "variables": {
                    "MARIADB_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first start",
                      "defaultValue": "owa"
                    },
                    "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": {
                    "1f13d287-47c8-4ebe-a025-03cdf1900c44": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "cbaa5138-c3a5-48cd-955e-cace2764ce26": {
                  "icon": "https://raw.githubusercontent.com/Open-Web-Analytics/Open-Web-Analytics/master/modules/Base/i/owa-logo-100w.png",
                  "name": "Open Web Analytics",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/open-web-analytics",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Apache listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "MariaDB host - private network only, leave as is",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_NAME": {
                      "isOptional": false,
                      "description": "Database name - leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_DATABASE}}"
                    },
                    "OWA_URL": {
                      "isOptional": false,
                      "description": "OWA's address. On a custom domain, set it to https://your.domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OWA_SECRET": {
                      "isOptional": false,
                      "description": "Seed for OWA's keys and salts - leave as is",
                      "defaultValue": "{{OWA_SECRET}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "MariaDB password - wired to the bundled MariaDB, leave as is",
                      "defaultValue": "${{MariaDB.MARIADB_ROOT_PASSWORD}}"
                    },
                    "OWA_SITE_URL": {
                      "isOptional": true,
                      "description": "First website to track, created on first boot - add more in OWA",
                      "defaultValue": "https://example.com"
                    },
                    "OWA_ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "Admin email, set on first boot only",
                      "defaultValue": "admin@example.com"
                    },
                    "OWA_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the 'admin' login, set on first boot only - change it in OWA afterwards",
                      "defaultValue": "{{OWA_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Open Web Analytics",
      "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"
}
