coolify/templates/compose/umami.yaml

36 lines
1.1 KiB
YAML
Raw Normal View History

2024-02-20 17:08:16 +01:00
# documentation: https://umami.is
2024-02-22 11:53:25 +01:00
# slogan: Umami is web analytics platform which provides insights into visitor behavior without compromising user privacy.
2023-10-24 12:33:49 +02:00
# tags: analytics, insights, privacy
2024-02-20 17:08:16 +01:00
# logo: svgs/umami.svg
2024-03-13 09:27:42 +01:00
# port: 3000
2023-10-19 10:51:03 +02:00
services:
umami:
image: ghcr.io/umami-software/umami:postgresql-latest
environment:
2024-03-13 09:27:42 +01:00
- SERVICE_FQDN_UMAMI_3000
2023-10-19 10:51:03 +02:00
- DATABASE_URL=postgres://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgresql:5432/$POSTGRES_DB
- DATABASE_TYPE=postgres
- APP_SECRET=$SERVICE_PASSWORD_64_UMAMI
depends_on:
postgresql:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 20s
retries: 10
2023-10-19 10:51:03 +02:00
postgresql:
image: postgres:16-alpine
2023-10-19 10:51:03 +02:00
volumes:
- postgresql-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DB=${POSTGRES_DB:-umami}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
2023-10-26 10:02:51 +02:00
timeout: 20s
2023-10-19 10:51:03 +02:00
retries: 10