Favicon of Umami

Umami

Umami is an open source, self-hosted web analytics solution. It is a faster and privacy-focused alternative to Google Analytics. Umami is easy to set up and use, and it doesn't track any personal information of your visitors.

Directory Structure

umami
db-data
.env
docker-compose.yml

docker-compose.yml

services:
  umami:
    image: ghcr.io/umami-software/umami:postgresql-latest
    container_name: umami
    restart: always
    ports:
      - "3000:3000"
    environment:
      DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
      DATABASE_TYPE: postgresql
      APP_SECRET: ${APP_SECRET}
    depends_on:
      db:
        condition: service_healthy
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://localhost:3000/api/heartbeat || exit 1"]
      interval: 5s
      timeout: 5s
      retries: 5

  db:
    image: postgres:15-alpine
    container_name: umami-db
    restart: always
    environment:
      POSTGRES_DB: ${POSTGRES_DB}
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
    volumes:
      - ./db-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
      interval: 5s
      timeout: 5s
      retries: 5

.env

POSTGRES_DB=umami
POSTGRES_USER=umami
POSTGRES_PASSWORD=your_secure_password
APP_SECRET=replace_this_with_a_random_string_at_least_32_chars
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Umami

Favicon

 

  
  
Favicon

 

  
  
Favicon