chore(deploy): automate private n8n bootstrap
This commit is contained in:
+13
-4
@@ -27,10 +27,19 @@ docker compose -p mobilityops -f compose.yaml -f compose.unraid.yaml exec api \
|
||||
python -m app.cli seed --reset
|
||||
```
|
||||
|
||||
Migrations run automatically in the API entrypoint. For the one-time n8n owner setup,
|
||||
forward a local port over SSH to server loopback, open that local URL, then run the
|
||||
documented workflow import/publish commands from `docs/17-runbook.md` with both Compose
|
||||
files supplied.
|
||||
Migrations run automatically in the API entrypoint. Complete the one-time n8n owner
|
||||
setup without exposing its editor to the LAN, then import and publish the workflow:
|
||||
|
||||
```bash
|
||||
./deploy/unraid/setup-n8n.sh http://127.0.0.1:15678
|
||||
docker compose -p mobilityops -f compose.yaml -f compose.unraid.yaml exec n8n \
|
||||
n8n import:workflow --input=//imports/mobilityops-return-processing.json
|
||||
docker compose -p mobilityops -f compose.yaml -f compose.unraid.yaml exec n8n \
|
||||
n8n publish:workflow --id=mobilityops-return-processing
|
||||
docker compose -p mobilityops -f compose.yaml -f compose.unraid.yaml restart n8n
|
||||
```
|
||||
|
||||
The generated n8n owner credentials remain only in the mode-`0600` server `.env`.
|
||||
|
||||
## Operate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user