Mist, jetzt vielleicht

This commit is contained in:
rxf
2026-03-11 20:33:19 +01:00
parent bc235e4e32
commit a949ebcdc8
28 changed files with 1666 additions and 74 deletions

39
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,39 @@
# Docker Compose für Production Server mit Traefik
services:
werte-app:
image: docker.citysensor.de/werte-next:latest
container_name: werte-next-app
restart: unless-stopped
expose:
- 3000
environment:
- NODE_ENV=production
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- AUTH_USERS=${AUTH_USERS}
- AUTH_SECRET=${AUTH_SECRET}
labels:
- traefik.enable=true
- traefik.http.routers.werte.entrypoints=http
- traefik.http.routers.werte.rule=Host(`werte.fuerst-stuttgart.de`)
- traefik.http.middlewares.werte-https-redirect.redirectscheme.scheme=https
- traefik.http.routers.werte.middlewares=werte-https-redirect
- traefik.http.routers.werte-secure.entrypoints=https
- traefik.http.routers.werte-secure.rule=Host(`werte.fuerst-stuttgart.de`)
- traefik.http.routers.werte-secure.tls=true
- traefik.http.routers.werte-secure.tls.certresolver=letsencrypt
- traefik.http.routers.werte-secure.service=werte
- traefik.http.services.werte.loadbalancer.server.port=3000
networks:
- proxy
- gitea-internal
networks:
proxy:
name: dockge_default
external: true
gitea-internal:
name: gitea_gitea-internal
external: true