forked from seong-jin-jo/openclaw-auto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
45 lines (44 loc) · 1.38 KB
/
Copy pathdocker-compose.yml.example
File metadata and controls
45 lines (44 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
openclaw-gateway:
build:
context: ./openclaw
dockerfile: Dockerfile
network: host
args:
OPENCLAW_EXTENSIONS: "threads-publish threads-queue threads-style threads-insights threads-search threads-growth x-publish image-upload"
OPENCLAW_INSTALL_BROWSER: "1"
volumes:
- ./config:/home/node/.openclaw
- ./data:/home/node/data
env_file: .env
environment:
HOME: /home/node
TZ: ${TZ:-Asia/Seoul}
network_mode: host
init: true
restart: unless-stopped
command: ["node", "dist/index.js", "gateway", "--bind", "loopback", "--port", "${GATEWAY_PORT:-18789}"]
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:${GATEWAY_PORT:-18789}/healthz').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
dashboard:
build:
context: ./dashboard
network: host
network_mode: host
volumes:
- ./data:/app/data
- ./config:/app/config
- /var/run/docker.sock:/var/run/docker.sock
env_file: .env
environment:
DATA_DIR: /app/data
CONFIG_DIR: /app/config
PORT: "${DASHBOARD_PORT:-34560}"
HOSTNAME: "0.0.0.0"
DASHBOARD_AUTH_TOKEN: ${DASHBOARD_AUTH_TOKEN:-}
GATEWAY_CONTAINER: ${GATEWAY_CONTAINER:-openclaw-gateway}
restart: unless-stopped