From a98707ef7d5db7d5660d0cc9f210f760e5826f94 Mon Sep 17 00:00:00 2001 From: Damien Arnodo Date: Wed, 7 Jan 2026 14:46:17 +0000 Subject: [PATCH] docs: update README for stack.env workflow --- README.md | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 504ab0b..6524463 100644 --- a/README.md +++ b/README.md @@ -30,24 +30,21 @@ sudo curl -o /opt/ts-netbox/serve-config.json https://gitea.arnodo.fr/Damien/net python3 -c "import secrets; print(secrets.token_urlsafe(50))" ``` -## Portainer Environment Variables - -| Variable | Description | -|----------|-------------| -| `TS_AUTHKEY` | Tailscale auth key (reusable, ephemeral recommended) | -| `DB_PASSWORD` | PostgreSQL password for netbox user | -| `SECRET_KEY` | Django secret key (generate with command above) | -| `SUPERUSER_NAME` | Initial admin username | -| `SUPERUSER_EMAIL` | Initial admin email | -| `SUPERUSER_PASSWORD` | Initial admin password | -| `SKIP_SUPERUSER` | Set to `true` after first deployment | - ## Deployment 1. Create a new stack in Portainer -2. Point to this repository -3. Configure environment variables -4. Deploy +2. Select "Repository" and point to this repository +3. Portainer will load `stack.env` automatically +4. Override sensitive values (`CHANGE_ME`) in the environment variables section: + - `TS_AUTHKEY` - Tailscale auth key (reusable recommended) + - `DB_PASSWORD` - PostgreSQL password + - `SECRET_KEY` - Django secret key + - `SUPERUSER_PASSWORD` - Initial admin password +5. Deploy + +### After First Deployment + +Set `SKIP_SUPERUSER=true` to prevent superuser recreation on redeploy. ## Access