From 75a4dc69f9f9912cc6efa7d45299dc6802355c8d Mon Sep 17 00:00:00 2001 From: Dylan Bolger Date: Sun, 28 Apr 2024 00:31:28 -0500 Subject: add compose files --- external/umami/compose.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 external/umami/compose.yaml (limited to 'external/umami/compose.yaml') 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 -- cgit v1.2.3