init permissions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user