-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 792 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 792 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
services:
openclaw:
build: .
container_name: openclaw
restart: unless-stopped
env_file: .env
environment:
- HOME=/home/node
- NODE_ENV=production
- TERM=xterm-256color
- BOT_NAME=${BOT_NAME:-OpenClaw}
volumes:
# Named volume for state + credential persistence.
# pass-cli session, rclone config, and encryption key live here.
# State also syncs to Proton Drive.
- openclaw-state:/home/node/.openclaw
network_mode: host
healthcheck:
test: ["CMD", "curl", "-sS", "-o", "/dev/null", "-w", "", "http://localhost:18789/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
# Graceful shutdown: let the final sync complete
stop_grace_period: 30s
volumes:
openclaw-state: