Files
umami/docker-compose.yml
lly 86cf8076ed
Node.js CI / build (push) Has been cancelled
refactor: geo
2026-07-23 14:30:13 +08:00

42 lines
1005 B
YAML

---
services:
umami:
image: umami-local:latest
build:
context: .
dockerfile: Dockerfile
ports:
- "3003:3000"
environment:
DATABASE_URL: postgresql://umami:umami@db:5432/umami
APP_SECRET: replace-me-with-a-random-string
SKIP_LOCATION_HEADERS: 1
volumes:
- ./geo/GeoLite2-City.mmdb:/app/geo/GeoLite2-City.mmdb:ro
depends_on:
db:
condition: service_healthy
init: true
restart: always
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: umami
POSTGRES_USER: umami
POSTGRES_PASSWORD: umami
volumes:
- umami-db-data:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
umami-db-data: