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>
39 lines
871 B
YAML
39 lines
871 B
YAML
services:
|
|
n8n:
|
|
image: n8nio/n8n:latest
|
|
ports:
|
|
- 5678:5678
|
|
networks:
|
|
- homelab
|
|
environment:
|
|
- N8N_HOST=n8n.bitfrost.me
|
|
- N8N_PORT=5678
|
|
- N8N_PROTOCOL=https
|
|
- N8N_RUNNERS_ENABLED=true
|
|
- WEBHOOK_URL=https://n8n.bitfrost.me/
|
|
- TZ=America/New_York
|
|
volumes:
|
|
- /home/doc/swarm-data/appdata/n8n:/home/node/.n8n
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5678/healthz"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|
|
deploy:
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: on-failure
|
|
delay: 5s
|
|
max_attempts: 3
|
|
resources:
|
|
limits:
|
|
memory: 2G
|
|
reservations:
|
|
memory: 512M
|
|
|
|
networks:
|
|
homelab:
|
|
external: true
|