init permissions

This commit is contained in:
2026-02-20 20:39:41 -05:00
parent 7dec80e217
commit dd6b3aa63d
2 changed files with 58 additions and 3 deletions

View File

@@ -1,6 +1,20 @@
version: "3.8"
services:
openclaw-init-perms:
image: alpine:3.20
container_name: openclaw-init-perms
restart: "no"
command:
[
"sh",
"-c",
"mkdir -p /config /workspace && chown -R 1000:1000 /config /workspace && chmod 755 /config /workspace",
]
volumes:
- openclaw-config:/config
- openclaw-workspace:/workspace
openclaw-gateway:
build:
context: ./docker
@@ -10,6 +24,9 @@ services:
image: openclaw:custom-arm64
container_name: openclaw-gateway
restart: unless-stopped
depends_on:
openclaw-init-perms:
condition: service_completed_successfully
environment:
HOME: /home/node
TERM: xterm-256color