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