-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.73 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.73 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
44
45
46
47
48
49
50
51
# This runs opencode *only*, assuming ollama or another Provider is already standing up, possibly even remotely.
services:
opencode:
build: .
image: opencode:local
container_name: opencode-agent
working_dir: /workspace
# Needed for webui
ports:
- 4096:4096
# env_file: .env
environment:
# Needed for ssh/git
- SSH_AUTH_SOCK=/run/ssh-agent
# Needed for desktop-agent
- DISPLAY=${DISPLAY}
- XAUTHORITY=/tmp/.Xauthority
# - important for PipeWire
- XDG_RUNTIME_DIR=/tmp/runtime-dir
- PIPEWIRE_RUNTIME_DIR=/tmp/runtime-dir
# - helps PulseAudio-compat apps
- PULSE_SERVER=unix:/tmp/runtime-dir/pulse/native
volumes:
- ../..:/workspace
# Needed for opencode stores
- ~/.agents:/root/.agents
- ~/.config/opencode:/root/.config/opencode
- ~/.opencode-browser:/root/.opencode-browser
- ~/.config/google-chrome/NativeMessagingHosts:/root/.config/google-chrome/NativeMessagingHosts/
- ~/.local/share/opencode:/root/.local/share/opencode
# Needed for avahi
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
- /var/run/avahi-daemon/socket:/var/run/avahi-daemon/socket
# Needed for ssh/git
- ${SSH_AUTH_SOCK}:/run/ssh-agent
- ~/.gitconfig:/root/.gitconfig:ro
# Needed for dind
- /var/run/docker.sock:/var/run/docker.sock
# Needed for desktop-agent
# - X11 stuff (also using Xwayland fallback)
- /tmp/.X11-unix:/tmp/.X11-unix:rw
- ${HOME}/.Xauthority:/tmp/.Xauthority:rw
- ${XDG_RUNTIME_DIR}:/tmp/runtime-dir
- speakturbo-voices:/root/.cache/huggingface/hub
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
speakturbo-voices: