{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1f466557-8972-46ae-bf5d-e2ee1bf305cd",
    "slug": "umami-analytics-privacy-first",
    "name": "Umami Analytics (Privacy-First)",
    "description": "Privacy-first Google Analytics alternative. Umami v3 + Postgres 17.",
    "url": "https://railway.com/deploy/umami-analytics-privacy-first",
    "upstream": {
      "image": "ghcr.io/umami-software/umami:3.2.0"
    }
  },
  "services": [
    {
      "name": "umami",
      "source": {
        "image": "ghcr.io/umami-software/umami:3.2.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "umami",
      "description": "Port Umami listens on. Must match the public domain target port (3000). Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "APP_SECRET",
      "service": "umami",
      "description": "Auto-generated secret used to hash session data. Do not change after first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "umami",
      "description": "Postgres connection string, wired to the bundled Postgres service. Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_UPDATES",
      "service": "umami",
      "description": "Disables update checks from the Umami dashboard.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DISABLE_TELEMETRY",
      "service": "umami",
      "description": "Disables Umami anonymous telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "umami"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Connection string used by Umami over private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user for Umami.",
      "secret": false,
      "strategy": "default",
      "default": "umami"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "umami-analytics-privacy-first"
      }
    },
    "cli": "railway deploy --template umami-analytics-privacy-first",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1f466557-8972-46ae-bf5d-e2ee1bf305cd",
            "serializedConfig": {
              "services": {
                "5a2cefca-f9d2-42d2-8ce0-49dc2b03d103": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/umami.svg",
                  "name": "umami",
                  "deploy": {
                    "healthcheckPath": "/api/heartbeat"
                  },
                  "source": {
                    "image": "ghcr.io/umami-software/umami:3.2.0"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port Umami listens on. Must match the public domain target port (3000). Do not change.",
                      "defaultValue": "3000"
                    },
                    "APP_SECRET": {
                      "description": "Auto-generated secret used to hash session data. Do not change after first deploy.",
                      "defaultValue": "{{APP_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "description": "Postgres connection string, wired to the bundled Postgres service. Do not change.",
                      "defaultValue": "${{ Postgres.DATABASE_URL }}"
                    },
                    "DISABLE_UPDATES": {
                      "description": "Disables update checks from the Umami dashboard.",
                      "defaultValue": "1"
                    },
                    "DISABLE_TELEMETRY": {
                      "description": "Disables Umami anonymous telemetry.",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "b5da2726-cd82-4c66-ae36-b18376f4aa9b": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Postgres data directory inside the mounted volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name created on first boot.",
                      "defaultValue": "umami"
                    },
                    "DATABASE_URL": {
                      "description": "Connection string used by Umami over private networking.",
                      "defaultValue": "postgresql://${{ POSTGRES_USER }}:${{ POSTGRES_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:5432/${{ POSTGRES_DB }}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user for Umami.",
                      "defaultValue": "umami"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Auto-generated database password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b5da2726-cd82-4c66-ae36-b18376f4aa9b": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "umami",
      "method": "GET",
      "path": "/api/heartbeat",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:13:50.458Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_daa8d34e159e4a998031",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "umami"
  }
}
