mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
networks:
|
|
1panel-network:
|
|
external: true
|
|
|
|
services:
|
|
openclaw:
|
|
image: ghcr.io/openclaw/openclaw:2026.3.8
|
|
container_name: ${CONTAINER_NAME}
|
|
user: node:node
|
|
labels:
|
|
createdBy: "Apps"
|
|
restart: always
|
|
networks:
|
|
- 1panel-network
|
|
init: true
|
|
command:
|
|
[
|
|
"node",
|
|
"dist/index.js",
|
|
"gateway",
|
|
"--bind",
|
|
"${OPENCLAW_GATEWAY_BIND:-lan}",
|
|
"--port",
|
|
"18789",
|
|
]
|
|
ports:
|
|
- ${PANEL_APP_PORT_HTTP}:18789
|
|
- ${PANEL_APP_PORT_RPC}:18790
|
|
env_file:
|
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
|
volumes:
|
|
- ${OPENCLAW_ROOT_PATH}/data/config:/home/node/.openclaw
|
|
- ${OPENCLAW_ROOT_PATH}/data/workspace:/home/node/.openclaw/workspace
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- HOME=/home/node
|
|
- TERM=xterm-256color
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD",
|
|
"node",
|
|
"-e",
|
|
"fetch('http://127.0.0.1:18789/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
|
|
]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 20s
|