Refactor Umami service in docker-compose: remove umami-db service and update environment variables for database connection
This commit is contained in:
@@ -113,26 +113,12 @@ services:
|
||||
## ─────────────────────────────────────────────
|
||||
## Umami + PostgreSQL — privacy analytics
|
||||
## ─────────────────────────────────────────────
|
||||
umami-db:
|
||||
image: postgres:16
|
||||
container_name: umami-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: ${UMAMI_DB_USER}
|
||||
POSTGRES_PASSWORD: ${UMAMI_DB_PASS}
|
||||
POSTGRES_DB: ${UMAMI_DB_NAME}
|
||||
TZ: "${TZ}"
|
||||
volumes:
|
||||
- umami_db_data:/var/lib/postgresql/data
|
||||
networks: [internal]
|
||||
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||
image: umamisoftware/umami:postgresql-latest
|
||||
container_name: umami
|
||||
restart: unless-stopped
|
||||
depends_on: [umami-db]
|
||||
environment:
|
||||
DATABASE_URL: postgresql://${UMAMI_DB_USER}:${UMAMI_DB_PASS}@umami-db:5432/${UMAMI_DB_NAME}
|
||||
APP_SECRET: ${UMAMI_APP_SECRET}
|
||||
TRACKER_SCRIPT_NAME: umami
|
||||
TZ: "${TZ}"
|
||||
|
||||
Reference in New Issue
Block a user