{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0b9bd0fd-111f-44c6-b754-e5bbd77812be",
    "slug": "umami-web-analytics",
    "name": "Umami | Privacy-Friendly Web Analytics with Postgres",
    "description": "Cookie-free Google Analytics alternative, admin password set on boot",
    "url": "https://railway.com/deploy/umami-web-analytics",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/umami"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Umami",
      "source": {
        "repo": "https://github.com/two-workspaces/umami"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:17.11-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Umami",
      "description": "HTTP port Umami listens on - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "Umami",
      "description": "Listen on IPv4 and IPv6 - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "APP_SECRET",
      "service": "Umami",
      "description": "Signs login tokens and share links. Changing it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Umami",
      "description": "Postgres connection (private network)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UMAMI_ADMIN_PASSWORD",
      "service": "Umami",
      "description": "Password for the admin user, generated at deploy time. Replaces the default admin/umami on first boot; change it in Umami afterwards (Settings -> Profile).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TWO_FACTOR_ENCRYPTION_KEY",
      "service": "Umami",
      "description": "Encrypts two-factor secrets (64 hex characters). Keep it, or users with 2FA can't sign in.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "umami"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "umami"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "umami-web-analytics"
      }
    },
    "cli": "railway deploy --template umami-web-analytics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0b9bd0fd-111f-44c6-b754-e5bbd77812be",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b9c9555e-6aa5-4edd-9320-a5d5c8ab1803": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/umami/main/icon.svg",
                  "name": "Umami",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/heartbeat",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/umami",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Umami listens on - leave as is.",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen on IPv4 and IPv6 - leave as is.",
                      "defaultValue": "::"
                    },
                    "APP_SECRET": {
                      "isOptional": false,
                      "description": "Signs login tokens and share links. Changing it signs everyone out.",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection (private network)",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "UMAMI_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the admin user, generated at deploy time. Replaces the default admin/umami on first boot; change it in Umami afterwards (Settings -> Profile).",
                      "defaultValue": "{{UMAMI_ADMIN_PASSWORD}}"
                    },
                    "TWO_FACTOR_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Encrypts two-factor secrets (64 hex characters). Keep it, or users with 2FA can't sign in.",
                      "defaultValue": "{{TWO_FACTOR_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "bea60316-3b01-4f55-a68d-3e49eb01b55f": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.11-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "umami"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "umami"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "78e9b836-b94f-48e1-b0ee-a7e4168f7af8": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Umami",
      "method": "GET",
      "path": "/api/heartbeat",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-26T16:14:50.905Z",
  "generator_version": "0.1.0"
}
