- 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>
25 lines
602 B
YAML
25 lines
602 B
YAML
services:
|
|
meshdd-bot:
|
|
build: .
|
|
network_mode: host
|
|
volumes:
|
|
- ./conf/config.yaml:/app/config.yaml:ro
|
|
- ./conf/env:/app/.env:ro
|
|
- ./conf/scheduler.yaml:/app/scheduler.yaml
|
|
- meshdd-data:/app/data
|
|
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:
|
|
meshdd-data:
|