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
20 lines
340 B
JSON
20 lines
340 B
JSON
{
|
|
"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}"
|
|
}
|
|
}
|