#3965: Fix Docker Compose configuration for moltbot deployment
docker
Cluster:
Docker Build Fixes
### Changes Made
This PR updates the `docker-compose.yml` to fix deployment issues when using container orchestration platforms like Coolify.
### What was fixed:
1. **Added build context** - Added `build: .` to both services to enable building from source instead of pulling non-existent images
2. **Updated volume paths** - Changed config directory mount from `/home/node/.clawdbot` to `/home/node/.moltbot` to match the application's current directory structure and prevent "EBUSY" errors
### Technical Details
- Previously, the compose file tried to pull `moltbot:local` from a registry, which doesn't exist
- The volume mount was pointing to the legacy `.clawdbot` directory while the app migrated to `.moltbot`
- These changes allow the application to build and run correctly in containerized environments
### Testing
- [x] Docker Compose builds successfully
- [x] Containers start without path-related errors
- [x] Volume mounts work correctly
### Breaking Changes
None - this is a fix for existing functionality
### Related Issues
Fixes deployment errors:
- `pull access denied for moltbot`
- `EBUSY: resource busy or locked, rename '/home/node/.clawdbot'`
```
## Comment ( initial comment):
```
This PR makes the Docker Compose configuration compatible with deployment platforms that build from Git repositories. The main issue was trying to pull a local-only image instead of building from source.
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates deployment configs to complete the Clawdbot→Moltbot migration across Docker/Fly/Render by renaming env vars and state/workspace paths, and by switching `docker-compose.yml` to build images from the local repo instead of pulling a non-existent `moltbot:local` image.
This fits the repo’s current Moltbot naming and helps Git-based orchestrators (e.g., Coolify) build and run the app without image-pull failures or writing to legacy `~/.clawdbot` paths.
<h3>Confidence Score: 4/5</h3>
- This PR is low-risk and mostly configuration/renaming changes, with one user-facing docs link issue to fix.
- Changes are limited to deployment config and environment variable/path renames plus adding `build: .` in compose; these are straightforward and unlikely to impact runtime code. The main concern spotted is a README link that still points to the old ClawdHub domain after renaming the section to MoltHub.
- README.md (MoltHub link)
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#3513: fix(docker): add MOLTBOT_STATE_DIR to resolve permission error
by Suksham-sharma · 2026-01-28
85.7%
#4238: Fix/docker migration atomicity
by ricardotrevisan · 2026-01-29
85.7%
#4070: fix(docker): expose moltbot CLI in Docker image
by saianilsingi · 2026-01-29
84.1%
#4695: Fixed the default CLI image to use published GHCR image
by TASMAYU · 2026-01-30
82.4%
#17916: [ fix ] : correct config directory path during onboarding
by Dijo-404 · 2026-02-16
81.2%
#9992: Docker: Fixed port mapping so ports publish when not stated
by Lightmean03 · 2026-02-06
80.9%
#17506: Fix Entrypoint in docker-compose
by NeilSCGH · 2026-02-15
80.4%
#3783: Fix/3038 cli name moltbot
by Shuimo03 · 2026-01-29
80.4%
#8050: fix: docker hardening
by christopherbarnett96 · 2026-02-03
79.7%
#7133: feat: Automated Docker setup with environment-based configuration
by synetalsolutions · 2026-02-02
79.6%