{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d8963aed-29b2-486c-a6d6-0cd0b6475d8d",
    "slug": "umami-2",
    "name": "Umami",
    "description": "Umami — privacy-focused web analytics, Google Analytics alternative",
    "url": "https://railway.com/deploy/umami-2",
    "upstream": {
      "image": "ghcr.io/umami-software/umami:postgresql-latest"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:16-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "umami",
      "source": {
        "image": "ghcr.io/umami-software/umami:postgresql-latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Postgres data directory inside the mounted volume. Must be a subpath of the volume mount path /var/lib/postgresql — this geometry places the volume's lost+found/ at /var/lib/postgresql/lost+found (outside PGDATA), so initdb sees an empty directory and proceeds. DO NOT change this without also changing the volume mount path.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Initial database created on first boot. Must match the database name in Umami's DATABASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "umami"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Postgres superuser name. Umami connects with these credentials.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Postgres password. Default literal 'postgres' so a fresh marketplace deploy authenticates out of the box. Rotate this in the dashboard AND update the Umami DATABASE_URL to match before production.",
      "secret": true,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PORT",
      "service": "umami",
      "description": "Port Umami listens on (default: 3000).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HASH_SALT",
      "service": "umami",
      "description": "Secret salt used for hashing. Auto-generated random value. Rotate this in the dashboard before production.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "umami",
      "description": "PostgreSQL connection string. Points at the sibling 'postgres' Railway service in this template.",
      "secret": false,
      "strategy": "default",
      "default": "postgresql://postgres:postgres@postgres.railway.internal:5432/umami"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "umami-2"
      }
    },
    "cli": "railway deploy --template umami-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d8963aed-29b2-486c-a6d6-0cd0b6475d8d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "223e053e-c7b2-4abb-a396-52f17baf9bbd": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory inside the mounted volume. Must be a subpath of the volume mount path /var/lib/postgresql — this geometry places the volume's lost+found/ at /var/lib/postgresql/lost+found (outside PGDATA), so initdb sees an empty directory and proceeds. DO NOT change this without also changing the volume mount path.",
                      "defaultValue": "/var/lib/postgresql/data"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial database created on first boot. Must match the database name in Umami's DATABASE_URL.",
                      "defaultValue": "umami"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres superuser name. Umami connects with these credentials.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password. Default literal 'postgres' so a fresh marketplace deploy authenticates out of the box. Rotate this in the dashboard AND update the Umami DATABASE_URL to match before production.",
                      "defaultValue": "postgres"
                    }
                  },
                  "volumeMounts": {
                    "223e053e-c7b2-4abb-a396-52f17baf9bbd": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "beaddf68-3ae9-46bd-9670-baa53c02782e": {
                  "icon": null,
                  "name": "umami",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/umami-software/umami:postgresql-latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Umami listens on (default: 3000).",
                      "defaultValue": "3000"
                    },
                    "HASH_SALT": {
                      "isOptional": false,
                      "description": "Secret salt used for hashing. Auto-generated random value. Rotate this in the dashboard before production.",
                      "defaultValue": "{{HASH_SALT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string. Points at the sibling 'postgres' Railway service in this template.",
                      "defaultValue": "postgresql://postgres:postgres@postgres.railway.internal:5432/umami"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T06:15:47.950Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c888c524d2ff415a918e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 63,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "umami"
  }
}
