📝 Clarify environment configuration (#2419)

## AI Disclaimer

Using Codex with gpt-5.6-sol. Reviewed manually.
This commit is contained in:
Sebastián Ramírez
2026-08-10 18:46:19 +02:00
committed by GitHub
parent a5aff58850
commit 2c28c6f7dc
2 changed files with 7 additions and 9 deletions
+6 -8
View File
@@ -54,24 +54,22 @@ export DOMAIN=fastapi-project.example.com
The deployment Docker Compose configuration also uses `DOMAIN` to set the public frontend URL used in links generated by the backend.
Set the `POSTGRES_PASSWORD` to something different than `changethis`:
Set the `POSTGRES_PASSWORD` to a secure value:
```bash
export POSTGRES_PASSWORD="changethis"
export POSTGRES_PASSWORD="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
```
Set the `SECRET_KEY`, used to sign tokens:
Set the `SECRET_KEY`, used to sign tokens, to a secure value:
```bash
export SECRET_KEY="changethis"
export SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
```
Note: you can use the Python command above to generate a secure secret key.
Set the `FIRST_SUPERUSER_PASSWORD` to something different than `changethis`:
Set the `FIRST_SUPERUSER_PASSWORD` to a secure value:
```bash
export FIRST_SUPERUSER_PASSWORD="changethis"
export FIRST_SUPERUSER_PASSWORD="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"
```
You can set several other environment variables: