-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.agent.yml
More file actions
42 lines (41 loc) · 1.36 KB
/
Copy pathdocker-compose.agent.yml
File metadata and controls
42 lines (41 loc) · 1.36 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
services:
agent:
build:
context: ./agent
args:
USER_UID: "${DEV_UID}"
USER_GID: "${DEV_GID}"
# Fixed image name allow to share the built image between all workspaces
# Avoid rebuilding once per repo
image: claude-devcontainer-agent
# Keeps the container alive between `ccc` invocations so `exec` has
# something to attach to.
command: ["sleep", "infinity"]
network_mode: host
working_dir: /workdir
volumes:
- "${WORKSPACE_FOLDER}:/workdir"
- claude-home:/home/dev/.claude
- glab-config:/home/dev/.config/glab-cli
- claude-desktop-notification-sock:/run/claude-desktop-notification
- mcp-context7-sock:/run/mcp-context7
- mcp-thiri-sock:/run/mcp-thiri
- "${CLAUDE_DEVCONTAINER_HOME}:/home/dev/.claude-devcontainer"
- "${HOME}/.claude.json:/home/dev/.claude.json"
- "${HOME}/.netrc:/home/dev/.netrc"
volumes:
# Persist Claude session state
claude-home:
name: claude-home
# Persists gitlab cli authentication
glab-config:
name: glab-config
# Socket for notification container communication
claude-desktop-notification-sock:
name: claude-desktop-notification-sock
# Socket for context7 container communication
mcp-context7-sock:
name: mcp-context7-sock
# Socket for thiri container communication
mcp-thiri-sock:
name: mcp-thiri-sock