You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Browse to your domain; or `curl -f http://localhost:3000/up` from the host (`docker compose exec web ...` inside the network).
46
54
47
55
## Observability
48
56
- Query stats: pg_stat_statements is preloaded via the Postgres config and created on first init via `/docker-entrypoint-initdb.d/01_pg_stat_statements.sql`. For existing databases, run `CREATE EXTENSION IF NOT EXISTS pg_stat_statements;` once. PgHero is available at `/pghero` for signed-in admin users.
49
57
- Request-level profiling: rack-mini-profiler is available; in production it renders only for signed-in admin users.
50
58
59
+
## Analytics (Umami, self-hosted)
60
+
Umami runs as a separate service and uses the same Postgres container (recommended: separate database).
61
+
62
+
Initialization:
63
+
- Fresh install: the init script creates the Umami database (`UMAMI_DB`, default `umami`) on first Postgres boot.
64
+
- Existing database: create it once manually (adjust user/db if needed):
65
+
```bash
66
+
docker compose exec db psql -U postgres -d postgres -c "CREATE ROLE umami LOGIN PASSWORD 'change-me';"
0 commit comments