Files
strom-next/docker-compose.prod.yml
T
admin 6fdf29f040 Docker-Deployment fuer nuccy
- Dockerfile (Next.js standalone, Multi-Stage) + .dockerignore
- deploy.sh fuer strom-next angepasst (Registry docker.citysensor.de,
  multiplatform build & push)
- docker-compose.prod.yml: Netzwerk 'smarthome' (external), InfluxDB als
  Host 'influx', alle Env-Defaults gesetzt, INFLUX_TOKEN aus .env
- .env.production.example (nur Token/Port), public/ fuer den Image-Build
- README: Deploy-Anleitung

Lokal verifiziert: Image baut, Container startet und liefert HTTP 200.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 16:34:24 +02:00

34 lines
1013 B
YAML

# Docker Compose für nuccy
# Container im externen Docker-Netzwerk 'smarthome', erreicht InfluxDB als 'influx'.
# 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://influx: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