mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-08 21:09:23 +08:00
fix: polish docker setup flow
This commit is contained in:
@@ -32,6 +32,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
HOME: /home/node
|
HOME: /home/node
|
||||||
TERM: xterm-256color
|
TERM: xterm-256color
|
||||||
|
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
|
||||||
BROWSER: echo
|
BROWSER: echo
|
||||||
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
|
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
|
||||||
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
|
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}
|
||||||
|
|||||||
@@ -191,12 +191,12 @@ docker compose "${COMPOSE_ARGS[@]}" run --rm openclaw-cli onboard --no-install-d
|
|||||||
echo ""
|
echo ""
|
||||||
echo "==> Provider setup (optional)"
|
echo "==> Provider setup (optional)"
|
||||||
echo "WhatsApp (QR):"
|
echo "WhatsApp (QR):"
|
||||||
echo " ${COMPOSE_HINT} run --rm openclaw-cli providers login"
|
echo " ${COMPOSE_HINT} run --rm openclaw-cli channels login"
|
||||||
echo "Telegram (bot token):"
|
echo "Telegram (bot token):"
|
||||||
echo " ${COMPOSE_HINT} run --rm openclaw-cli providers add --provider telegram --token <token>"
|
echo " ${COMPOSE_HINT} run --rm openclaw-cli channels add --channel telegram --token <token>"
|
||||||
echo "Discord (bot token):"
|
echo "Discord (bot token):"
|
||||||
echo " ${COMPOSE_HINT} run --rm openclaw-cli providers add --provider discord --token <token>"
|
echo " ${COMPOSE_HINT} run --rm openclaw-cli channels add --channel discord --token <token>"
|
||||||
echo "Docs: https://docs.openclaw.ai/providers"
|
echo "Docs: https://docs.openclaw.ai/channels"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "==> Starting gateway"
|
echo "==> Starting gateway"
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ After it finishes:
|
|||||||
|
|
||||||
- Open `http://127.0.0.1:18789/` in your browser.
|
- Open `http://127.0.0.1:18789/` in your browser.
|
||||||
- Paste the token into the Control UI (Settings → token).
|
- Paste the token into the Control UI (Settings → token).
|
||||||
|
- Need the tokenized URL again? Run `docker compose run --rm openclaw-cli dashboard --no-open`.
|
||||||
|
|
||||||
It writes config/workspace on the host:
|
It writes config/workspace on the host:
|
||||||
|
|
||||||
@@ -72,6 +73,27 @@ docker compose run --rm openclaw-cli onboard
|
|||||||
docker compose up -d openclaw-gateway
|
docker compose up -d openclaw-gateway
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note: run `docker compose ...` from the repo root. If you enabled
|
||||||
|
`OPENCLAW_EXTRA_MOUNTS` or `OPENCLAW_HOME_VOLUME`, the setup script writes
|
||||||
|
`docker-compose.extra.yml`; include it when running Compose elsewhere:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose.yml -f docker-compose.extra.yml <command>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Control UI token + pairing (Docker)
|
||||||
|
|
||||||
|
If you see “unauthorized” or “disconnected (1008): pairing required”, fetch a
|
||||||
|
fresh dashboard link and approve the browser device:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose run --rm openclaw-cli dashboard --no-open
|
||||||
|
docker compose run --rm openclaw-cli devices list
|
||||||
|
docker compose run --rm openclaw-cli devices approve <requestId>
|
||||||
|
```
|
||||||
|
|
||||||
|
More detail: [Dashboard](/web/dashboard), [Devices](/cli/devices).
|
||||||
|
|
||||||
### Extra mounts (optional)
|
### Extra mounts (optional)
|
||||||
|
|
||||||
If you want to mount additional host directories into the containers, set
|
If you want to mount additional host directories into the containers, set
|
||||||
@@ -254,6 +276,13 @@ docker compose run --rm openclaw-cli channels add --channel discord --token "<to
|
|||||||
|
|
||||||
Docs: [WhatsApp](/channels/whatsapp), [Telegram](/channels/telegram), [Discord](/channels/discord)
|
Docs: [WhatsApp](/channels/whatsapp), [Telegram](/channels/telegram), [Discord](/channels/discord)
|
||||||
|
|
||||||
|
### OpenAI Codex OAuth (headless Docker)
|
||||||
|
|
||||||
|
If you pick OpenAI Codex OAuth in the wizard, it opens a browser URL and tries
|
||||||
|
to capture a callback on `http://127.0.0.1:1455/auth/callback`. In Docker or
|
||||||
|
headless setups that callback can show a browser error. Copy the full redirect
|
||||||
|
URL you land on and paste it back into the wizard to finish auth.
|
||||||
|
|
||||||
### Health check
|
### Health check
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user