aboutsummaryrefslogtreecommitdiff
path: root/external/umami
diff options
context:
space:
mode:
Diffstat (limited to 'external/umami')
-rw-r--r--external/umami/compose.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/external/umami/compose.yaml b/external/umami/compose.yaml
new file mode 100644
index 0000000..0672c19
--- /dev/null
+++ b/external/umami/compose.yaml
@@ -0,0 +1,38 @@
+version: '3'
+services:
+ umami:
+ container_name: umami
+ image: ghcr.io/umami-software/umami:postgresql-latest
+ ports:
+ - "${UMAMI_WEB_PORT}:3000"
+ environment:
+ IGNORE_IP: "${UMAMI_IGNORE_IP}"
+ DATABASE_URL: "${UMAMI_DB_URL}"
+ DATABASE_TYPE: "${UMAMI_DB_TYPE}"
+ APP_SECRET: "${UMAMI_APP_SECRET}"
+ #depends_on:
+ #db:
+ #condition: service_healthy
+ restart: always
+ #healthcheck:
+ #test: ["CMD-SHELL", "curl http://localhost:3001/api/heartbeat"]
+ #interval: 5s
+ #timeout: 5s
+ # retries: 5
+ umami-db:
+ container_name: 'umami-db'
+ image: postgres:15-alpine
+ environment:
+ POSTGRES_DB: umami
+ POSTGRES_USER: umami
+ POSTGRES_PASSWORD: umami
+ volumes:
+ - "${UMAMI_DB_DATA_PATH}:/var/lib/postgresql/data"
+ ports:
+ - "${UMAMI_DB_PORT}:5432"
+ restart: always
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
+ interval: 5s
+ timeout: 5s
+ retries: 5