chore: reduce gateway memory limit, update startup command, and remove redundant build context from cli service
This commit is contained in:
+6
-13
@@ -8,7 +8,7 @@ services:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '4'
|
||||
memory: 12G
|
||||
memory: 8G
|
||||
reservations:
|
||||
memory: 2G
|
||||
environment:
|
||||
@@ -30,15 +30,11 @@ services:
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
command:
|
||||
[
|
||||
"openclaw",
|
||||
"gateway",
|
||||
"--bind",
|
||||
"${OPENCLAW_GATEWAY_BIND:-lan}",
|
||||
"--port",
|
||||
"18789",
|
||||
"--allow-unconfigured"
|
||||
]
|
||||
- /bin/bash
|
||||
- -c
|
||||
- |
|
||||
openclaw config set gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback true
|
||||
exec openclaw gateway --bind "${OPENCLAW_GATEWAY_BIND:-lan}" --port 18789 --allow-unconfigured
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -53,9 +49,6 @@ services:
|
||||
start_period: 20s
|
||||
|
||||
openclaw-cli:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
image: openclaw-clawteam:latest
|
||||
pull_policy: build
|
||||
network_mode: "service:openclaw-gateway"
|
||||
|
||||
Reference in New Issue
Block a user