fixed docker-compose for claude volumes

This commit is contained in:
duffyduck 2026-03-15 10:10:36 +01:00
parent 5af0587d00
commit 483957b272
1 changed files with 3 additions and 4 deletions

View File

@ -12,12 +12,10 @@ services:
sed -i '1i\\function _t(c){return typeof c===\"string\"?c:Array.isArray(c)?c.filter(function(b){return b.type===\"text\"}).map(function(b){return b.text||\"\"}).join(\"\"):String(c)}' $$DIST/adapter/openai-to-cli.js &&
sed -i 's/msg\\.content/_t(msg.content)/g' $$DIST/adapter/openai-to-cli.js &&
sed -i 's/\"--no-session-persistence\",/\"--no-session-persistence\",\"--dangerously-skip-permissions\",/' $$DIST/subprocess/manager.js &&
rm -rf /home/node/.claude &&
ln -sf /root/.claude /home/node/.claude &&
chmod -R 755 /root /root/.claude &&
chown -R node:node /home/node/.claude &&
su -s /bin/sh node -c 'claude-max-api'"
volumes:
- ~/.config/claude:/root/.config/claude # Claude CLI Auth (fuer Login via Diagnostic)
- proxy-claude-auth:/home/node/.claude # Persistiert Credentials + Settings fuer node-User
environment:
- HOST=0.0.0.0
restart: unless-stopped
@ -106,6 +104,7 @@ services:
volumes:
openclaw-config: # Persistiert ~/.openclaw (Model, Auth, Sessions)
claude-config: # Persistiert ~/.claude (Permissions, Settings)
proxy-claude-auth: # Persistiert Proxy Claude CLI Auth (node-User)
networks:
aria-net: