Add HOST_PORT configuration to .env.example and update docker-compose and README
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ services:
|
||||
build: .
|
||||
container_name: tk-newsletter-admin
|
||||
ports:
|
||||
- "8000:8000"
|
||||
- "${HOST_PORT:-8080}:8000"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user