Files
strom-next/docker-compose.prod.yml
T
admin 67fa2de818 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>
2026-06-28 17:07:33 +02:00

34 lines
1017 B
YAML

# Docker Compose für nuccy
# 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:
image: docker.citysensor.de/strom-next:latest
container_name: strom-next-app
restart: unless-stopped
ports:
- "${STROM_PORT:-3000}:3000"
environment:
- NODE_ENV=production
# InfluxDB im smarthome-Netz
- INFLUX_URL=http://influxdb:8086
- INFLUX_TOKEN=${INFLUX_TOKEN}
- INFLUX_ORG=citysensor
- INFLUX_BUCKET=strom
# Rohdaten (24h) bzw. Rollup (7d/31d/365d)
- INFLUX_MEASUREMENT=vzlogger
- INFLUX_ROLLUP_MEASUREMENT=arbeit_hourly
- INFLUX_FIELD=arbeit
- INFLUX_UNIT_FACTOR=0.001
# E-Auto-Lade-Erkennung
- INFLUX_POWER_FIELD=leistung
- LADEN_THRESHOLD_KW=11
- LADEN_MIN_HOURS=2
- LADEN_MAX_GAP_MIN=10
networks:
- smarthome
networks:
smarthome:
external: true