deploy: Registry-Deploy für nuccy (collector + web)

- deploy.sh: baut & pusht beide Images (linux/amd64) nach docker.citysensor.de
- docker-compose.prod.yml: zieht Registry-Images, collector im smarthome-Netz
  (Broker-Container 'mqtt'), gemeinsames data-Volume
- .env.production.example: Vorlage für nuccy (.env neben der Compose-Datei)
- .gitignore: .claude/ ausschließen

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-05 16:10:56 +02:00
parent 5f695ebe2a
commit 0295d5a584
4 changed files with 125 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
# Docker Compose für nuccy (Registry-Images, von deploy.sh gebaut/gepusht).
# Geheimnisse/Abweichungen kommen aus einer .env-Datei neben dieser Compose-Datei
# (siehe .env.production.example). Beide Container teilen sich das Volume ./data.
services:
collector:
image: docker.citysensor.de/auto-charger-collector:latest
container_name: auto-charger-collector
restart: unless-stopped
environment:
- TZ=${TZ:-Europe/Berlin}
# MQTT-Broker läuft als Container 'mqtt' im smarthome-Netz.
- MQTT_HOST=${MQTT_HOST:-mqtt}
- MQTT_PORT=${MQTT_PORT:-1883}
- MQTT_USER=${MQTT_USER}
- MQTT_PASS=${MQTT_PASS}
- MQTT_TOPIC_BASE=${MQTT_TOPIC_BASE:-go-eCharger/310014}
- DB_PATH=/data/charges.db
volumes:
- ./data:/data
networks:
- smarthome
web:
image: docker.citysensor.de/auto-charger-web:latest
container_name: auto-charger-web
restart: unless-stopped
environment:
- NODE_ENV=production
- TZ=${TZ:-Europe/Berlin}
- DB_PATH=/data/charges.db
ports:
- "${WEB_PORT:-8082}:3000"
volumes:
- ./data:/data
depends_on:
- collector
networks:
smarthome:
external: true