From bd6822b44f00e87c7126e31bf8b30d5e5e0089b9 Mon Sep 17 00:00:00 2001 From: julien Date: Sat, 18 Jan 2025 14:41:30 +0100 Subject: [PATCH] first commit --- .env | 7 +++++++ .gitignore | 1 + README.md | 1 + compose.yml | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 .env create mode 100644 .gitignore create mode 100644 README.md create mode 100644 compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..808e902 --- /dev/null +++ b/.env @@ -0,0 +1,7 @@ +POSTGRES_DB=umami +POSTGRES_USER=umami +#POSTGRES_PASSWORD= + +#DATABASE_URL= +DATABASE_TYPE=postgresql +#APP_SECRET= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57d9655 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +volumes/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..4e1c947 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# stats.netig.net diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..c93e3d8 --- /dev/null +++ b/compose.yml @@ -0,0 +1,32 @@ +services: + postgres: + image: postgres:15-alpine + container_name: statsnetignet_postgres + env_file: + - .env + - ../passwords/statsnetignet.pass + volumes: + - ./volumes/postgres:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] + interval: 5s + timeout: 5s + retries: 5 + restart: unless-stopped + umami: + image: ghcr.io/umami-software/umami:postgresql-latest + container_name: statsnetignet_unami + depends_on: + postgres: + condition: service_healthy + env_file: + - .env + - ../passwords/statsnetignet.pass + ports: + - "127.0.0.1:3000:3000" + healthcheck: + test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"] + interval: 5s + timeout: 5s + retries: 5 + restart: unless-stopped