mirror of https://github.com/openclaw/openclaw.git
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:
parent
3feb7fc3a3
commit
466a1e1cdb
|
|
@ -136,7 +136,11 @@ _clawdock_ensure_dir() {
|
||||||
# Wrapper to run docker compose commands
|
# Wrapper to run docker compose commands
|
||||||
_clawdock_compose() {
|
_clawdock_compose() {
|
||||||
_clawdock_ensure_dir || return 1
|
_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() {
|
_clawdock_read_env_token() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue