-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
25 lines (25 loc) · 1 KB
/
compose.yml
File metadata and controls
25 lines (25 loc) · 1 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
services:
opencode:
build: .
container_name: opencode-sandbox
user: "1000:1000" # enforce non-root
stdin_open: true
tty: true
read_only: false # opencode writes session state
security_opt:
- no-new-privileges:true # prevent privilege escalation
cap_drop:
- ALL # drop all Linux capabilities
volumes:
# Config files (read-only mounts)
- ./config/opencode.json:/home/opencode/.config/opencode/opencode.json:ro
- ./config/auth.json:/home/opencode/.local/share/opencode/auth.json:ro
# Your project workspace (read-write so opencode can edit files)
- ./workspace:/home/opencode/workspace:rw
- ./data:/home/opencode/.local/share/opencode
# No network_mode: host — use bridge so container is isolated
# but can still reach your vLLM server via host IP
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- HOME=/home/opencode