a75303f857
- lib/db.ts entfernt, mysql2-Abhängigkeit gestrichen - lib/phpdb.ts: HTTP-Client für alle DB-Operationen via DB4js_all.php - Alle API-Routen und Server Actions auf phpdb.ts umgestellt - compose.yml / docker-compose.prod.yml: MySQL/phpMyAdmin-Container entfernt - app/api/DB4js_all.php/route.ts: Proxy für Statistik-AJAX-Calls - Statistik-Grafik liest ab 2026 live aus logbuch statt StatistikJahre - PHP 7.3-Kompatibilität: str_contains → strpos Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
services:
|
|
logbuch_app:
|
|
image: docker.citysensor.de/logbuch:latest
|
|
container_name: logbuch_app
|
|
restart: unless-stopped
|
|
environment:
|
|
PHP_DB_URL: ${PHP_DB_URL}
|
|
AUTH_SECRET: ${AUTH_SECRET}
|
|
NODE_ENV: production
|
|
ports:
|
|
- 127.0.0.1:${APP_PORT:-3000}:3000
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.logbuch.entrypoints=http
|
|
- traefik.http.routers.logbuch.rule=Host(`logbuch.fuerst-stuttgart.de`)
|
|
- traefik.http.middlewares.logbuch-https-redirect.redirectscheme.scheme=https
|
|
- traefik.http.routers.logbuch.middlewares=logbuch-https-redirect
|
|
- traefik.http.routers.logbuch-secure.entrypoints=https
|
|
- traefik.http.routers.logbuch-secure.rule=Host(`logbuch.fuerst-stuttgart.de`)
|
|
- traefik.http.routers.logbuch-secure.tls=true
|
|
- traefik.http.routers.logbuch-secure.service=logbuch
|
|
- traefik.http.services.logbuch.loadbalancer.server.port=3000
|
|
networks:
|
|
- proxy
|
|
- gitea-internal
|
|
|
|
networks:
|
|
proxy:
|
|
name: dockge_default
|
|
external: true
|
|
gitea-internal:
|
|
name: gitea_gitea-internal
|
|
external: true
|