Added healthchecks: - adminer: PHP file_get_contents check - authentik_server: ak healthcheck command - authentik_redis: redis-cli ping - paperless_redis: redis-cli ping - paperless_webserver: curl localhost:8000 - n8n: wget healthz endpoint - traefik: wget ping endpoint (with --ping enabled) - tracker-nginx: curl localhost:80 Added resource limits: - adminer: 512M limit, 128M reservation - authentik_server: 1G/1 CPU limit, 512M reservation - authentik_worker: 1G/1 CPU limit, 512M reservation - authentik_redis: 512M limit, 128M reservation - paperless_redis: 512M limit, 128M reservation - paperless_webserver: 2G/2 CPU limit, 1G reservation - traefik: 512M/0.5 CPU limit, 256M reservation - tracker-nginx: 256M limit, 64M reservation All services now have proper health monitoring and resource constraints to prevent resource exhaustion and improve reliability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
27 lines
555 B
YAML
27 lines
555 B
YAML
services:
|
|
adminer:
|
|
image: adminer:latest
|
|
networks:
|
|
- homelab
|
|
ports:
|
|
- 8091:8080
|
|
environment:
|
|
- ADMINER_DEFAULT_SERVER=10.0.4.10
|
|
- ADMINER_DESIGN=nette
|
|
healthcheck:
|
|
test: ["CMD", "php", "-r", "if (file_get_contents('http://localhost:8080')) exit(0); exit(1);"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 20s
|
|
deploy:
|
|
replicas: 1
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
reservations:
|
|
memory: 128M
|
|
networks:
|
|
homelab:
|
|
external: true
|