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