-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.17 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
# docker-compose.yml — local production setup
# Usage:
# docker compose up -d
# docker compose logs -f bot
services:
bot:
build: .
image: opencode-remote:latest
container_name: opencode-remote-bot
restart: unless-stopped
# Run as non-root for security (uncomment after testing)
# user: "1000:1000"
volumes:
# Persistent state (credentials, history, logs)
- bot-state:/root/.opencode-remote
environment:
# Proxy (set your own if needed)
# - HTTP_PROXY=http://host.docker.internal:7890
# - HTTPS_PROXY=http://host.docker.internal:7890
# OpenCode timeout (seconds)
- OPENCODE_TIMEOUT=180
# Debug logging
- DEBUG_RAW=0
# Timezone (optional, for log timestamps)
- TZ=Asia/Shanghai
# Network mode for WeChat iLink (if you need host network access)
# network_mode: host
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
healthcheck:
test: ["CMD", "test", "-f", "/root/.opencode-remote/parent.pid"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
volumes:
bot-state:
name: opencode-remote-state