first commit

This commit is contained in:
julien 2025-01-18 14:41:30 +01:00
commit bd6822b44f
4 changed files with 41 additions and 0 deletions

7
.env Normal file
View File

@ -0,0 +1,7 @@
POSTGRES_DB=umami
POSTGRES_USER=umami
#POSTGRES_PASSWORD=
#DATABASE_URL=
DATABASE_TYPE=postgresql
#APP_SECRET=

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
volumes/

1
README.md Normal file
View File

@ -0,0 +1 @@
# stats.netig.net

32
compose.yml Normal file
View File

@ -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