-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (76 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
79 lines (76 loc) · 2.03 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
services:
proxy:
build:
context: .
dockerfile: proxy.Dockerfile
volumes:
- ./allowed-domains.txt:/etc/squid/allowed-domains.txt:ro
- ./squid.conf:/etc/squid/squid.conf:ro
healthcheck:
test: ["CMD-SHELL", "test -f /run/squid.pid"]
interval: 2s
timeout: 2s
retries: 5
start_period: 3s
networks:
- agent-net
agent:
profiles: [claude]
build:
context: .
dockerfile: agent.Dockerfile
args:
CLAUDE_CODE_VERSION: ${CLAUDE_CODE_VERSION:-latest}
cap_add:
- NET_ADMIN
- NET_RAW
depends_on:
proxy:
condition: service_healthy
volumes:
- ${PROJECT_DIR:-.}:/workspace
- ${HOME}/.aws:/home/node/.aws
- ${HOME}/.claude:/home/node/.claude
- ${HOME}/.claude.json:/home/node/.claude.json
- ${CLAUDE_SETTINGS_FILE:-./dot-claude/settings.json}:/home/node/.claude/settings.json
environment:
- HTTP_PROXY=http://proxy:3128
- HTTPS_PROXY=http://proxy:3128
- NO_PROXY=localhost,127.0.0.1,proxy
- CLAUDE_CODE_USE_BEDROCK=${CLAUDE_CODE_USE_BEDROCK:-}
- ANTHROPIC_MODEL=${ANTHROPIC_MODEL:-}
- ANTHROPIC_SMALL_FAST_MODEL=${ANTHROPIC_SMALL_FAST_MODEL:-}
- AWS_PROFILE=${AWS_PROFILE:-}
- AWS_REGION=${AWS_REGION:-}
working_dir: /workspace
stdin_open: true
tty: true
networks:
- agent-net
opencode:
profiles: [opencode]
build:
context: .
dockerfile: opencode.Dockerfile
cap_add:
- NET_ADMIN
- NET_RAW
depends_on:
proxy:
condition: service_healthy
volumes:
- ${PROJECT_DIR:-.}:/workspace
- ./dot-opencode/opencode.json:/home/node/.config/opencode/opencode.json
environment:
- HTTP_PROXY=http://proxy:3128
- HTTPS_PROXY=http://proxy:3128
- NO_PROXY=localhost,127.0.0.1,proxy
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
working_dir: /workspace
stdin_open: true
tty: true
networks:
- agent-net
networks:
agent-net:
driver: bridge