Files
tabletten/docker-compose.yml
T
admin 3b4e893ca1 Login-/Session-/Passkey-Logik vollständig entfernen
Die App läuft künftig nur noch lokal, daher ist Anmeldung nicht mehr
nötig: Proxy-Middleware, Login-Seite, Session-Handling, Passkey/WebAuthn
(inkl. DB-Tabelle tabletten_passkeys), Logout-Button und der
Einstellungen-Tab (enthielt ausschließlich Passkey-Verwaltung) entfallen.
Der eigenständig per CHECK_SECRET geschützte Cron-Endpoint /api/check
sowie SMTP- und MongoDB-Auth (lib/mailService.ts, lib/mongodb.ts) sind
davon unabhängig und bleiben unverändert. Nicht mehr benötigte
Abhängigkeiten (@simplewebauthn/*, bcryptjs, jose) sowie die
zugehörigen Env-Variablen (AUTH_USERS, AUTH_SECRET, TABLETTEN_RP_*)
wurden aus package.json, compose.yml und docker-compose.yml gestrichen.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-21 14:19:51 +02:00

45 lines
1.1 KiB
YAML

# docker-compose.yml
# Multiplatform-Build: linux/amd64 + linux/arm64 (z.B. fuer M1/M2-Mac und x86-Server)
#
# Einmaliger Setup:
# docker buildx create --use --name multi
#
# Build & Push (Multi-Arch):
# docker buildx bake --push
#
# Lokaler Start (nur aktuelle Plattform):
# docker compose up --build
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
BUILD_DATE: "$(date +%d.%m.%Y)"
platforms:
- linux/amd64
- linux/arm64
image: docker.citysensor.de/tabletten_next:latest
restart: unless-stopped
ports:
- "3000:3000"
environment:
# MySQL
MYSQL_HOST: ${MYSQL_HOST}
MYSQL_PORT: ${MYSQL_PORT:-3306}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
# E-Mail
SMTP_HOST: ${SMTP_HOST}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_USER: ${SMTP_USER}
SMTP_PASS: ${SMTP_PASS}
MAIL_TO: ${MAIL_TO}
# App
VORLAUF: ${VORLAUF:-14}
CHECK_SECRET: ${CHECK_SECRET}
env_file:
- .env.local