added docker for deployment and README for how to

This commit is contained in:
BeatriceAl
2026-05-11 22:01:37 +02:00
parent b5d1f40dca
commit 420bb8a4f9
4 changed files with 125 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
# Guestlist
Minimale Guestlist-App mit Admin/Maintainer-Login, Guest-Access-Code und MongoDB.
## Schnellstart mit Docker Compose
```bash
docker compose up -d --build
```
App öffnen:
```text
http://localhost:8080
```
Beim ersten Start:
```text
http://localhost:8080/setup
```
Dort den ersten Admin und den Guest Access Code anlegen.
## Nützliche Befehle
Logs anzeigen:
```bash
docker compose logs -f app
```
Stoppen:
```bash
docker compose down
```
Stoppen und MongoDB-Daten löschen:
```bash
docker compose down -v
```
## Konfiguration
Die App wird im Container über Environment Variables konfiguriert:
```yaml
Mongo__ConnectionString: mongodb://mongo:27017
Mongo__DatabaseName: guestlist
ASPNETCORE_URLS: http://+:8080
```
MongoDB-Daten liegen im Compose-Volume `mongo_data`.