Repository navigation
Docs: add Coolify deployment guide - #10464
frankdierolf wants to merge 1 commit into
Conversation
| | Variable | Value | Description | | ||
| | ------------------------ | ------------ | -------------------------------------------------------------------------- | | ||
| | `OPENCLAW_GATEWAY_TOKEN` | _(generate)_ | Secret token for gateway access. Generate one with `openssl rand -hex 32`. | | ||
| | `DOCKER_BUILDKIT` | `1` | Ensures the Docker build uses BuildKit. Required for the build to succeed. | | ||
|
|
||
| `NODE_ENV` and `HOME` are already set in the Dockerfile and do not need to be added here. |
There was a problem hiding this comment.
Incorrect BuildKit env var
Coolify (and Docker generally) uses DOCKER_BUILDKIT=1 for BuildKit, but the canonical env var is DOCKER_BUILDKIT? Actually the daemon/CLI uses DOCKER_BUILDKIT=1 (correct), whereas BUILDKIT_PROGRESS controls progress output. The troubleshooting note references a "--progress" error and claims BuildKit is required; however the env var alone won’t fix a --progress flag parse error if Coolify is invoking docker build --progress=... against a legacy docker/daemon. Please either (a) change this troubleshooting item to the actual observed failure message + fix for Coolify v4, or (b) remove it to avoid sending users to set an env var that doesn’t address the error.
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/install/coolify.md
Line: 41:46
Comment:
**Incorrect BuildKit env var**
Coolify (and Docker generally) uses `DOCKER_BUILDKIT=1` for BuildKit, but the canonical env var is `DOCKER_BUILDKIT`? Actually the daemon/CLI uses `DOCKER_BUILDKIT=1` (correct), whereas `BUILDKIT_PROGRESS` controls progress output. The troubleshooting note references a `"--progress" error` and claims BuildKit is required; however the env var alone won’t fix a `--progress` flag parse error if Coolify is invoking `docker build --progress=...` against a legacy docker/daemon. Please either (a) change this troubleshooting item to the actual observed failure message + fix for Coolify v4, or (b) remove it to avoid sending users to set an env var that doesn’t address the error.
How can I resolve this? If you propose a fix, please make it concise.| ### 7. Configure LAN binding (one-time) | ||
|
|
||
| The gateway binds to localhost by default. Coolify's Traefik proxy needs it to bind to all interfaces. Create a config file from the **container** terminal: | ||
|
|
||
| 1. In the Terminal dropdown, select your **container** (not the server) and click **Connect** | ||
| 2. Run: | ||
|
|
||
| ```bash | ||
| echo '{"gateway":{"bind":"lan","mode":"local"}}' > /home/node/.openclaw/openclaw.json | ||
| ``` |
There was a problem hiding this comment.
Config write may fail
Step 7 writes /home/node/.openclaw/openclaw.json via shell redirection. If the mounted volume is still owned by root (or if step 6 was skipped / failed), this echo ... > will error with Permission denied and users will be stuck. Consider either explicitly telling users to complete step 6 before step 7, or show a command that runs as root (e.g. via docker exec -u 0 ... sh -lc '... > ...') so the config write is guaranteed to succeed.
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/install/coolify.md
Line: 73:82
Comment:
**Config write may fail**
Step 7 writes `/home/node/.openclaw/openclaw.json` via shell redirection. If the mounted volume is still owned by `root` (or if step 6 was skipped / failed), this `echo ... >` will error with `Permission denied` and users will be stuck. Consider either explicitly telling users to complete step 6 before step 7, or show a command that runs as root (e.g. via `docker exec -u 0 ... sh -lc '... > ...'`) so the config write is guaranteed to succeed.
How can I resolve this? If you propose a fix, please make it concise.cd0dcab to
3c1936e
Compare
|
Addressed both review comments: BuildKit env var (line 46): I traced this through Coolify source ( Config write prerequisite (line 82): Step 7 now explicitly states "After fixing permissions in step 6" so users know the dependency. If step 6 is skipped, the echo command will fail with Permission denied — which is the expected behavior since the volume needs correct ownership first. |
Add step-by-step guide for deploying OpenClaw on Coolify (self-hosted PaaS) with persistent storage and automatic HTTPS. Covers resource creation, domain/port config, environment variables, volume permission fix via server terminal, LAN binding config, device pairing, onboarding wizard, and troubleshooting. Validated end-to-end on Coolify v4.
3c1936e to
975740c
Compare
|
Coolify now has a native one-click service for OpenClaw that handles volume permissions, LAN binding, and device authentication automatically. This makes the manual setup in this PR obsolete. Opening a new PR with a simplified guide based on the native integration. |
Coolify now includes OpenClaw as a native one-click service, making the manual Dockerfile-based setup obsolete. Rewrite the guide to cover the streamlined deployment flow: one-click deploy, auto-generated auth credentials, env-var-based provider config, browser automation, and channel setup. Supersedes openclaw#10464.
Closes #10463
Summary
docs/install/coolify.mdwith a step-by-step guide for deploying OpenClaw on Coolify v4docs/docs.jsonunder "Hosting and deployment"Docs-only change, no code modifications.
What the guide covers
OPENCLAW_GATEWAY_TOKEN,DOCKER_BUILDKIT=1)/home/node/.openclawchownvia server terminal)Design decisions
/home/node/.openclawwith correct ownership beforeUSER node) would eliminate the chown step, but that is left for a separate PR to keep this one docs-only.Test plan
docs/docs.jsonnav entry is valid JSON and appears under "Hosting and deployment"lobster-biscuit
Greptile Overview
Greptile Summary
docs/install/coolify.md) covering resource creation, env vars, persistent storage, pairing, onboarding, and troubleshooting.docs/docs.json) to include the new Coolify page under Install → Hosting and deployment.Confidence Score: 3/5
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!