docs: update README for stack.env workflow
This commit is contained in:
27
README.md
27
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))"
|
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
|
## Deployment
|
||||||
|
|
||||||
1. Create a new stack in Portainer
|
1. Create a new stack in Portainer
|
||||||
2. Point to this repository
|
2. Select "Repository" and point to this repository
|
||||||
3. Configure environment variables
|
3. Portainer will load `stack.env` automatically
|
||||||
4. Deploy
|
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
|
## Access
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user