Skip to content

Add optional home volume + extra bind mounts in Docker setup #678

@gabriel-trigo

Description

@gabriel-trigo

Today docker-setup.sh only mounts ~/.clawdbot and ~/clawd. For dev use, it’s common to want extra host directories (e.g. ~/.codex, ~/github) mounted into the container, and sometimes to persist the entire container home across recreations. There isn’t a built-in option for either without editing compose files.

Proposal:

  • Add CLAWDBOT_EXTRA_MOUNTS to inject extra bind mounts into both gateway + CLI containers.
  • Add CLAWDBOT_HOME_VOLUME to mount a named Docker volume at /home/node so container home persists, while keeping the standard .clawdbot and clawd host mounts.
  • Document these options in the Docker install guide.

Rationale: keep the default flow simple but give power users a clean, supported way to persist home and mount more host directories without manual compose editing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions