Fix: InfluxDB-Host im smarthome-Netz heisst 'influxdb'

INFLUX_URL in docker-compose.prod.yml auf http://influxdb:8086 korrigiert
(verursachte 500 bei allen API-Routen, da Host 'influx' nicht aufloesbar).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-28 17:07:33 +02:00
parent ead1846767
commit 67fa2de818
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -112,8 +112,8 @@ npm start
## Docker / Deployment auf nuccy
Die App läuft als Container auf **nuccy** im externen Docker-Netzwerk
**`smarthome`** und erreicht die InfluxDB dort unter dem Host **`influx`**
(`http://influx:8086`).
**`smarthome`** und erreicht die InfluxDB dort unter dem Host **`influxdb`**
(`http://influxdb:8086`).
### Image bauen & in die Registry pushen (vom Entwicklungsrechner)
+2 -2
View File
@@ -1,5 +1,5 @@
# Docker Compose für nuccy
# Container im externen Docker-Netzwerk 'smarthome', erreicht InfluxDB als 'influx'.
# Container im externen Docker-Netzwerk 'smarthome', erreicht InfluxDB als 'influxdb'.
# Geheimnisse (INFLUX_TOKEN) kommen aus einer .env-Datei neben dieser Compose-Datei.
services:
strom-app:
@@ -11,7 +11,7 @@ services:
environment:
- NODE_ENV=production
# InfluxDB im smarthome-Netz
- INFLUX_URL=http://influx:8086
- INFLUX_URL=http://influxdb:8086
- INFLUX_TOKEN=${INFLUX_TOKEN}
- INFLUX_ORG=citysensor
- INFLUX_BUCKET=strom