fix registry hostname and load .env automatically

gitea.thuis.local doesn't resolve on this network; the real internal
Gitea hostname is gitea.zb.local. Also load .env via python-dotenv so
the app works the same under PowerShell as bash, and add .dockerignore
so .env never ends up baked into the image.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
2026-07-25 09:29:43 +02:00
co-authored by Claude Sonnet 5
parent 60735de445
commit e805dc9194
5 changed files with 22 additions and 12 deletions
+6 -5
View File
@@ -10,14 +10,15 @@ koolhydraten en pomp-/sensorwissels overlay, plus time-in-range-cijfers.
> Manage Tokens in Nightscout — geef het token minimaal `readable`-rechten)
of het klassieke API secret.
2. Kopieer `.env.example` naar `.env` en vul `NIGHTSCOUT_URL` en één van de
twee auth-opties in.
twee auth-opties in. `app.py` laadt `.env` zelf in (via `python-dotenv`),
dus dit werkt hetzelfde onder PowerShell, cmd of bash — je hoeft de
variabelen niet zelf in je shell te zetten.
3. Lokaal draaien:
```bash
```powershell
uv venv
uv pip install -r requirements.txt
set -a; source .env; set +a # of: laad de vars op je eigen manier
streamlit run app.py
uv pip install -r requirements.txt --python .venv
.venv\Scripts\streamlit run app.py
```
4. Met Docker Compose: