This commit is contained in:
zino
2025-08-13 15:15:54 +02:00
parent 2fcfbb1f2f
commit 6e37ecd231
3 changed files with 110 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: "3.9"
services:
mtail:
image: ghcr.io/google/mtail:latest
container_name: mtail-registry
command:
- --progs=/etc/mtail
- --logs=/logs/registry.zinomedia.de.access.json.log
- --web_listen_addr=:3903
- --vm_logs_runtime_errors=false
- --prometheus_emit_histograms=false
environment:
- TZ=Europe/Berlin
networks:
- web
volumes:
- ./progs:/etc/mtail:ro
- /opt/docker/docker-nginx/volumes/logs:/logs:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3903/metrics"]
interval: 30s
timeout: 5s
retries: 3
networks:
web:
external: true
name: web