Add HOST_PORT configuration to .env.example and update docker-compose and README

This commit is contained in:
smueller
2026-07-03 11:40:11 +02:00
parent 146d398ecb
commit 995740937e
3 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ ENVIRONMENT=production
SECRET_KEY=PLEASE_CHANGE_TO_A_LONG_RANDOM_SECRET
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=120
HOST_PORT=8080
DATABASE_URL=sqlite:///./data/newsletter.db
# Beispiel PostgreSQL:
# DATABASE_URL=postgresql+psycopg://newsletter:newsletter@postgres:5432/newsletter

View File

@@ -30,6 +30,7 @@ Produktionsnahes internes Tool zur Erstellung von Thomas-Krenn.AG Newslettern au
```
2. Wichtige Werte in `.env` setzen:
- `HOST_PORT` (z. B. `8080`, falls `8000` bereits belegt ist)
- `SECRET_KEY`
- `ADMIN_BOOTSTRAP_EMAIL`
- `ADMIN_BOOTSTRAP_PASSWORD`
@@ -41,7 +42,7 @@ Produktionsnahes internes Tool zur Erstellung von Thomas-Krenn.AG Newslettern au
```
4. Zugriff:
- [http://localhost:8000/login](http://localhost:8000/login)
- [http://localhost:8080/login](http://localhost:8080/login) (oder dein `HOST_PORT`)
## Sicherheits-Hinweise für Produktion

View File

@@ -3,7 +3,7 @@ services:
build: .
container_name: tk-newsletter-admin
ports:
- "8000:8000"
- "${HOST_PORT:-8080}:8000"
env_file:
- .env
volumes: