What is it for?
Umami measures visits to your sites (page views, referrers, devices) with a clear dashboard. It respects privacy and needs no cookie banner.
Who is it for?
Site owners who want to know who visits, without Google Analytics.
After installing
- Log in with admin / umami, then change the password right away.
- Add your site and paste the small tracking script into its pages.
The docker-compose
Example behind Traefik. To adapt it (Nginx Proxy Manager, local port…) with a line-by-line explanation, use the generator (in French).
# docker-compose.yml : Umami
services:
umami:
image: ghcr.io/umami-software/umami:latest
container_name: umami
restart: unless-stopped
init: true
security_opt:
- no-new-privileges:true
depends_on:
- db
environment:
DATABASE_URL: "postgresql://umami:${DB_PASSWORD}@db:5432/umami"
APP_SECRET: "${APP_SECRET}"
TWO_FACTOR_ENCRYPTION_KEY: "${TWO_FACTOR_ENCRYPTION_KEY}"
TZ: Europe/Paris
networks:
- traefik
- default
labels:
- traefik.enable=true
- traefik.http.routers.umami.rule=Host(`stats.mydomain.com`)
- traefik.http.routers.umami.entrypoints=websecure
- traefik.http.routers.umami.tls.certresolver=letsencrypt
- traefik.http.services.umami.loadbalancer.server.port=3000
- traefik.docker.network=traefik
db:
image: postgres:15-alpine
container_name: umami-db
restart: unless-stopped
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: "${DB_PASSWORD}"
volumes:
- ./db:/var/lib/postgresql/data
networks:
traefik:
external: true