Files
web-log-monitor/docker-compose.yml
AJ Isaacs e3ee9fc193 Replace config.py with .env for Docker-standard configuration
Config was a Python file baked into the image or bind-mounted, requiring
a rebuild or manual file management for any settings change. Now uses
env_file in docker-compose with os.environ.get() calls, so config
changes only need a container restart. Also filters Gitea traffic from
LLM analysis to prevent false positive reconnaissance alerts on normal
repository browsing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 19:29:09 -05:00

16 lines
454 B
YAML

services:
web-log-monitor:
build: .
container_name: web-log-monitor
restart: unless-stopped
env_file: .env
volumes:
# Mount Traefik logs (read-only)
- /mnt/docker/traefik/logs:/logs:ro
# Persist state between restarts
- ./data:/data
environment:
- TZ=America/New_York
# Runs as a long-lived daemon by default; use --once for single-run mode
command: ["python3", "-u", "web-log-monitor.py"]