Update README with deployment instructions for server updates and container management

This commit is contained in:
2026-01-29 14:06:56 +01:00
parent 51e7cdd85c
commit 7672775306

View File

@@ -105,6 +105,23 @@ docker run -p 8000:8000 -e PUBLIC_URL=https://kantine.elpatron.me kantine2ical
docker compose up -d docker compose up -d
``` ```
**Deploy-Ablauf (Update auf dem Server):** Nach `git pull` und `docker build` muss der **Container neu gestartet** werden, damit das neue Image genutzt wird der laufende Container verwendet sonst weiter das alte Image.
```bash
git pull
docker compose build --no-cache # oder: docker build -t kantine2ical . --no-cache
docker compose up -d --force-recreate
```
Ohne Compose (einzelner Container):
```bash
git pull
docker build -t kantine2ical . --no-cache
docker stop <container-name> # laufenden Container stoppen
docker rm <container-name> # optional
docker run -d -p 8000:8000 -e PUBLIC_URL=https://kantine.elpatron.me --name kantine2ical kantine2ical
```
Der Container läuft auf Port 8000 und startet bei Bedarf neu (`restart: unless-stopped`). Der Container läuft auf Port 8000 und startet bei Bedarf neu (`restart: unless-stopped`).
**Hinweis:** Für den Einsatz in Production wird ein **Reverse-Proxy mit HTTPS** (z. B. Traefik, Caddy oder nginx) vor dem Container empfohlen, damit Google die Kalender-URL zuverlässig abrufen kann. **Hinweis:** Für den Einsatz in Production wird ein **Reverse-Proxy mit HTTPS** (z. B. Traefik, Caddy oder nginx) vor dem Container empfohlen, damit Google die Kalender-URL zuverlässig abrufen kann.