forked from ianjwhite99/opencode-with-claude
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 996 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 996 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
services:
opencode:
build:
context: .
network: host
image: opencode-with-claude
container_name: opencode-with-claude
restart: unless-stopped
init: true
stop_grace_period: 30s
user: root
ports:
- "4096:4096" # OpenCode web UI
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
# Persistent OpenCode data
- opencode-data:/home/opencode/.local/share/opencode
- opencode-state:/home/opencode/.local/state/opencode
- opencode-cache:/home/opencode/.cache/opencode
- opencode-config:/home/opencode/.config/opencode
# Claude auth persistence
- claude-auth:/home/opencode/.claude
# Workspace
- ~/workspace:/home/opencode/workspace
# SSH & Git (read-only from host)
- ~/.ssh:/tmp/.ssh:ro
- ~/.gitconfig:/tmp/.gitconfig:ro
volumes:
opencode-data:
opencode-state:
opencode-cache:
opencode-config:
claude-auth: