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:
@@ -112,8 +112,8 @@ npm start
|
|||||||
## Docker / Deployment auf nuccy
|
## Docker / Deployment auf nuccy
|
||||||
|
|
||||||
Die App läuft als Container auf **nuccy** im externen Docker-Netzwerk
|
Die App läuft als Container auf **nuccy** im externen Docker-Netzwerk
|
||||||
**`smarthome`** und erreicht die InfluxDB dort unter dem Host **`influx`**
|
**`smarthome`** und erreicht die InfluxDB dort unter dem Host **`influxdb`**
|
||||||
(`http://influx:8086`).
|
(`http://influxdb:8086`).
|
||||||
|
|
||||||
### Image bauen & in die Registry pushen (vom Entwicklungsrechner)
|
### Image bauen & in die Registry pushen (vom Entwicklungsrechner)
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Docker Compose für nuccy
|
# 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.
|
# Geheimnisse (INFLUX_TOKEN) kommen aus einer .env-Datei neben dieser Compose-Datei.
|
||||||
services:
|
services:
|
||||||
strom-app:
|
strom-app:
|
||||||
@@ -11,7 +11,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
# InfluxDB im smarthome-Netz
|
# InfluxDB im smarthome-Netz
|
||||||
- INFLUX_URL=http://influx:8086
|
- INFLUX_URL=http://influxdb:8086
|
||||||
- INFLUX_TOKEN=${INFLUX_TOKEN}
|
- INFLUX_TOKEN=${INFLUX_TOKEN}
|
||||||
- INFLUX_ORG=citysensor
|
- INFLUX_ORG=citysensor
|
||||||
- INFLUX_BUCKET=strom
|
- INFLUX_BUCKET=strom
|
||||||
|
|||||||
Reference in New Issue
Block a user