-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathdocker-compose.template.yml
More file actions
38 lines (31 loc) · 966 Bytes
/
docker-compose.template.yml
File metadata and controls
38 lines (31 loc) · 966 Bytes
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
version: '3.8'
services:
openclaw-instance-{{INSTANCE_ID}}:
image: openclaw:local
container_name: openclaw-{{INSTANCE_ID}}
restart: unless-stopped
ports:
- "{{PORT}}:18789"
volumes:
# Config directory
- {{CONFIG_PATH}}:/home/node/.openclaw:rw
# Skills directory
- {{SKILLS_PATH}}:/home/node/.openclaw/workspace/skills:rw
# Workspace directory
- {{WORKSPACE_PATH}}:/home/node/.openclaw/workspace:rw
environment:
- NODE_ENV=production
- OPENCLAW_GATEWAY_TOKEN={{GATEWAY_TOKEN}}
- OPENCLAW_CONFIG_DIR=/home/node/.openclaw
- OPENCLAW_WORKSPACE_DIR=/home/node/.openclaw/workspace
healthcheck:
test: ["CMD", "node", "dist/index.js", "health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- openclaw-network-{{INSTANCE_ID}}
networks:
openclaw-network-{{INSTANCE_ID}}:
driver: bridge