Skip to content

Docs: add Coolify deployment guide - #10464

Closed
frankdierolf wants to merge 1 commit into
openclaw:mainfrom
frankdierolf:feat/coolify-docs
Closed

frankdierolf wants to merge 1 commit into
openclaw:mainfrom
frankdierolf:feat/coolify-docs

Conversation

@frankdierolf

@frankdierolf frankdierolf commented Feb 6, 2026 •

Copy link
Copy Markdown
Contributor

Closes #10463

Summary

  • Add docs/install/coolify.md with a step-by-step guide for deploying OpenClaw on Coolify v4
  • Add nav entry in docs/docs.json under "Hosting and deployment"

Docs-only change, no code modifications.

What the guide covers

  1. Creating a Coolify resource from the public OpenClaw repo
  2. Domain, port, and environment variable configuration (OPENCLAW_GATEWAY_TOKEN, DOCKER_BUILDKIT=1)
  3. Persistent storage with a named volume at /home/node/.openclaw
  4. One-time volume permission fix (chown via server terminal)
  5. One-time LAN bind config so Traefik can reach the gateway
  6. Device pairing through the container terminal
  7. Onboarding wizard and model provider setup
  8. Troubleshooting section covering all known quirks

Design decisions

  • Works with the upstream Dockerfile as-is. A Dockerfile improvement (pre-creating /home/node/.openclaw with correct ownership before USER node) would eliminate the chown step, but that is left for a separate PR to keep this one docs-only.
  • Follows the structure of existing hosting guides (Railway, Render, Hetzner, etc.).
  • Recommends OpenCode Zen as a model provider tip for users who want free multi-model access to test their deployment.

Test plan

  • Validated end-to-end on Coolify v4 (February 6, 2026)
  • docs/docs.json nav entry is valid JSON and appears under "Hosting and deployment"
  • All troubleshooting items tested by reproducing each failure scenario

lobster-biscuit

Greptile Overview

Greptile Summary

  • Adds a new Coolify v4 deployment guide (docs/install/coolify.md) covering resource creation, env vars, persistent storage, pairing, onboarding, and troubleshooting.
  • Updates Mintlify navigation (docs/docs.json) to include the new Coolify page under Install → Hosting and deployment.
  • No runtime code changes; documentation-only addition that follows existing hosting guide structure.

Confidence Score: 3/5

  • Mostly safe to merge, but a couple doc instructions appear misleading or can fail in common setups.
  • Change is docs-only, but the Coolify guide includes a troubleshooting item and a config-write step that can send users toward fixes that don’t resolve the cited error (BuildKit/--progress) or that will fail if volume ownership isn’t correct, leading to stuck deployments.
  • docs/install/coolify.md

(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Feb 6, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 file reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread docs/install/coolify.md
Comment on lines +41 to +46
| 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/install/coolify.md
Comment on lines +73 to +82
### 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
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@frankdierolf

Copy link
Copy Markdown
Contributor Author

Addressed both review comments:

BuildKit env var (line 46): I traced this through Coolify source (ApplicationDeploymentJob.php): when "Build Secrets" is disabled (the default), Coolify runs docker build --progress plain without DOCKER_BUILDKIT=1. The legacy Docker builder doesn't support --progress, so the build fails. Setting DOCKER_BUILDKIT=1 as a build-time env var switches to BuildKit which supports it. Updated the troubleshooting entry to explain this.

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.
@frankdierolf

Copy link
Copy Markdown
Contributor Author

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.

@frankdierolf
frankdierolf deleted the feat/coolify-docs branch February 23, 2026 13:19
frankdierolf added a commit to frankdierolf/openclaw that referenced this pull request Feb 26, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: add Coolify deployment guide

1 participant