- docker-compose.yml: db (timescaledb/pg17) + backend + frontend - backend/Dockerfile: multi-stage (golang:1.24-alpine -> debian:bookworm-slim) - frontend/Dockerfile: multi-stage (node:22-alpine -> nginx:alpine), Build-Args fuer VITE_* - frontend/nginx.conf: SPA-Routing + Asset-Caching - .env.example: BACKEND_HOST, DB_PASSWORD, JWT_SECRET, API_KEY - backend/config/config.go: ENV-Var-Support vervollstaendigt (JWT_SECRET, API_KEY, DB_PORT, DB_USER, DB_NAME) - backend/config.yaml.example: ENV-Var Kommentare ergaenzt - README: Docker-Quickstart als empfohlener Einstieg (3 Befehle) - .gitignore: .env zur ignore-Liste hinzugefuegt
19 lines
607 B
Plaintext
19 lines
607 B
Plaintext
# docker-compose Konfiguration
|
|
# Kopiere diese Datei nach .env und trage deine Werte ein
|
|
|
|
# IP oder Hostname des Servers auf dem du docker compose ausfuehrst
|
|
# (wird vom Browser genutzt um das Backend zu erreichen)
|
|
BACKEND_HOST=192.168.1.100
|
|
BACKEND_PORT=8443
|
|
|
|
# Datenbank-Passwort (frei waehlbar)
|
|
DB_PASSWORD=sicheres_db_passwort
|
|
|
|
# JWT Secret — langer zufaelliger String (min. 32 Zeichen)
|
|
# Beispiel: openssl rand -hex 32
|
|
JWT_SECRET=ZUFAELLIGER_STRING_MIN_32_ZEICHEN
|
|
|
|
# API Key — frei waehlbar, wird fuer Agent und Frontend benoetigt
|
|
# Beispiel: openssl rand -hex 16
|
|
API_KEY=SELBST_GEWAEHLTER_API_KEY
|