mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
fix(clawdock): include docker-compose.extra.yml in helper commands (#17094)
_clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes #17083 Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -136,7 +136,11 @@ _clawdock_ensure_dir() {
|
||||
# Wrapper to run docker compose commands
|
||||
_clawdock_compose() {
|
||||
_clawdock_ensure_dir || return 1
|
||||
command docker compose -f "${CLAWDOCK_DIR}/docker-compose.yml" "$@"
|
||||
local compose_args=(-f "${CLAWDOCK_DIR}/docker-compose.yml")
|
||||
if [[ -f "${CLAWDOCK_DIR}/docker-compose.extra.yml" ]]; then
|
||||
compose_args+=(-f "${CLAWDOCK_DIR}/docker-compose.extra.yml")
|
||||
fi
|
||||
command docker compose "${compose_args[@]}" "$@"
|
||||
}
|
||||
|
||||
_clawdock_read_env_token() {
|
||||
|
||||
Reference in New Issue
Block a user