Bootstrap a working Docker Compose config on first boot so the WebUI works out of the box
A fresh 'docker compose up' started with no config (the entrypoint only bootstrapped for Render), so every published port was unreachable: the gateway and WebSocket channel defaulted to a container-local 127.0.0.1 bind, and nanobot-api exited into a restart loop because serve refuses a non-loopback host without an api_key. Bootstrap config.json for container runs (NANOBOT_DOCKER_BOOTSTRAP, set by docker-compose.yml) from a committed docker-config.json with binds that survive the container boundary, baking the WebUI token and API key at first boot (env value if provided, generated otherwise, printed to the log). Move nanobot-api under the 'api' profile since it cannot serve before a provider is configured. Install curl in the image and document the new first-boot flow. Fixes #6165
This commit is contained in:
1 parent
53e0edf709
commit
ddd22a26f8
6 files changed
+153
-14
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"gateway": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 18790
|
||||
},
|
||||
"channels": {
|
||||
"websocket": {
|
||||
"enabled": true,
|
||||
"host": "0.0.0.0",
|
||||
"port": 8765,
|
||||
"tokenIssueSecret": "${NANOBOT_WEB_TOKEN}",
|
||||
"websocketRequiresToken": true
|
||||
}
|
||||
},
|
||||
"api": {
|
||||
"host": "0.0.0.0",
|
||||
"api_key": "${NANOBOT_API_KEY}"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user