2026-02-06 09:02:59 +03:00
|
|
|
# APP_CORE Gatherer
|
|
|
|
|
# Supported ENV overrides (Format: OVPMON_{SECTION}_{KEY}):
|
|
|
|
|
# MONITOR: OVPMON_OPENVPN_MONITOR_DB_PATH, OVPMON_OPENVPN_MONITOR_LOG_PATH, OVPMON_OPENVPN_MONITOR_CHECK_INTERVAL
|
|
|
|
|
# LOGGING: OVPMON_LOGGING_LEVEL, OVPMON_LOGGING_LOG_FILE
|
|
|
|
|
# RETENTION: OVPMON_RETENTION_RAW_RETENTION_DAYS, OVPMON_RETENTION_AGG_5M_RETENTION_DAYS, etc.
|
2026-02-05 07:36:25 +03:00
|
|
|
FROM python:3.12-alpine
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
|
COPY requirements.txt .
|
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
2026-02-06 09:02:59 +03:00
|
|
|
# Copy application
|
2026-02-05 07:36:25 +03:00
|
|
|
COPY . .
|
|
|
|
|
|
2026-02-06 09:02:59 +03:00
|
|
|
# Ensure DB directory exists
|
|
|
|
|
RUN mkdir -p /app/db
|
|
|
|
|
|
2026-02-05 07:36:25 +03:00
|
|
|
CMD ["python", "openvpn_gatherer_v3.py"]
|