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>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user