docs: update README for stack.env workflow

This commit is contained in:
2026-01-07 14:46:17 +00:00
parent 9fde13e30d
commit a98707ef7d

View File

@@ -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