stats.netig.net/compose.yml
2025-01-18 14:53:38 +01:00

33 lines
857 B
YAML

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:9012:3000"
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:3000/api/heartbeat"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped