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>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user