-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (48 loc) · 1.35 KB
/
docker-compose.yml
File metadata and controls
63 lines (48 loc) · 1.35 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
52
53
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
autosynth:
build:
context: .
dockerfile: Dockerfile
image: autosynth-dev:latest
container_name: autosynth-dev
# Interactive terminal
stdin_open: true
tty: true
# Volumes
volumes:
# Mount the project
- .:/workspace
# X11 socket (Linux)
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# PulseAudio socket (Linux)
- ${XDG_RUNTIME_DIR:-/run/user/1000}/pulse:/run/user/1000/pulse:rw
- ${HOME}/.config/pulse:/home/ubuntu/.config/pulse:ro
# Persist Claude Code auth and config (entire .claude directory)
- ./.docker-state/claude:/home/ubuntu/.claude
# Persist npm cache
- autosynth-npm-cache:/home/ubuntu/.npm
# Environment for X11 and audio
environment:
- DISPLAY=${DISPLAY:-:0}
- PULSE_SERVER=unix:/run/user/1000/pulse/native
- XDG_RUNTIME_DIR=/run/user/1000
# Audio device access
- ALSA_CARD=0
# Network mode for audio
network_mode: host
# Device access for audio
devices:
- /dev/snd:/dev/snd
- /dev/dri:/dev/dri
# Security - needed for audio/X11
security_opt:
- seccomp:unconfined
# Allow ptrace for debugging
cap_add:
- SYS_PTRACE
# IPC for shared memory (audio buffers)
ipc: host
working_dir: /workspace
volumes:
autosynth-npm-cache: