feat: v0.7.0 - Docker-Verbesserungen
- Dockerfile: EXPOSE 8080 → 8081 + HEALTHCHECK auf /api/stats - docker-compose.yml: healthcheck + json-file logging (10MB/3 Dateien) - conf/config.yaml: Version 0.7.0, Host/Port aktualisiert Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
997a29842f
commit
fad830f6d5
|
|
@ -1,5 +1,14 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.7.0] - 2026-02-18
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- **Dockerfile**: `EXPOSE` von 8080 auf 8081 korrigiert (entspricht Web-Port in config.yaml).
|
||||||
|
- **Dockerfile**: `HEALTHCHECK` hinzugefügt – prüft `/api/stats` alle 30s,
|
||||||
|
Timeout 5s, Start-Wartezeit 20s, max. 3 Versuche.
|
||||||
|
- **docker-compose.yml**: `healthcheck` und `logging` (json-file, 10 MB / 3 Dateien) ergänzt.
|
||||||
|
- **conf/config.yaml**: Version auf 0.7.0 und Verbindungsdaten aktualisiert.
|
||||||
|
|
||||||
## [0.6.15] - 2026-02-18
|
## [0.6.15] - 2026-02-18
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,18 @@ FROM python:3.12-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# Copy application
|
||||||
COPY meshbot/ meshbot/
|
COPY meshbot/ meshbot/
|
||||||
COPY static/ static/
|
COPY static/ static/
|
||||||
COPY main.py .
|
COPY main.py .
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8081
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
|
||||||
|
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8081/api/stats')" || exit 1
|
||||||
|
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
version: "0.6.1"
|
version: "0.7.0"
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
name: "MeshDD-Bot"
|
name: "MeshDD-Bot"
|
||||||
command_prefix: "?"
|
command_prefix: "?"
|
||||||
|
|
||||||
meshtastic:
|
meshtastic:
|
||||||
host: "192.168.11.11"
|
host: "192.168.11.4"
|
||||||
port: 4403
|
port: 4403
|
||||||
|
|
||||||
web:
|
web:
|
||||||
host: "0.0.0.0"
|
host: "0.0.0.0"
|
||||||
port: 8080
|
port: 8081
|
||||||
|
|
||||||
database:
|
database:
|
||||||
path: "data/meshdd.db"
|
path: "data/meshdd.db"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
version: "0.6.15"
|
version: "0.7.0"
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
name: "MeshDD-Bot"
|
name: "MeshDD-Bot"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,17 @@ services:
|
||||||
- ./conf/scheduler.yaml:/app/scheduler.yaml
|
- ./conf/scheduler.yaml:/app/scheduler.yaml
|
||||||
- meshdd-data:/app/data
|
- meshdd-data:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8081/api/stats')"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 5s
|
||||||
|
start_period: 20s
|
||||||
|
retries: 3
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-files: "3"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
meshdd-data:
|
meshdd-data:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue