跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

compose.yaml

66 行 · 1.4 KB历史下载
1name: cage-relay
2
3services:
4 relay:
5 image: cage-relay:local
6 build:
7 context: ../..
8 dockerfile: deploy/relay/Dockerfile
9 user: "${RELAY_UID:?Set RELAY_UID to the token file owner UID}:${RELAY_GID:?Set RELAY_GID to the token file owner GID}"
10 command:
11 - --listen=0.0.0.0:8787
12 - --token-file=/run/secrets/relay_admin_token
13 - --max-rooms=128
14 - --pair-timeout=2m
15 - --idle-timeout=5m
16 secrets:
17 - relay_admin_token
18 networks:
19 - backend
20 read_only: true
21 cap_drop:
22 - ALL
23 security_opt:
24 - no-new-privileges:true
25 stop_grace_period: 15s
26 restart: unless-stopped
27
28 caddy:
29 image: caddy:2.11.8-alpine
30 environment:
31 RELAY_DOMAIN: "${RELAY_DOMAIN:?Set RELAY_DOMAIN to the relay public DNS name}"
32 depends_on:
33 - relay
34 ports:
35 - "80:80"
36 - "443:443"
37 volumes:
38 - ./Caddyfile:/etc/caddy/Caddyfile:ro
39 - caddy_data:/data
40 - caddy_config:/config
41 networks:
42 - edge
43 - backend
44 read_only: true
45 tmpfs:
46 - /tmp
47 cap_drop:
48 - ALL
49 cap_add:
50 - NET_BIND_SERVICE
51 security_opt:
52 - no-new-privileges:true
53 restart: unless-stopped
54
55secrets:
56 relay_admin_token:
57 file: "${RELAY_TOKEN_FILE:?Set RELAY_TOKEN_FILE to an absolute protected token file path}"
58
59networks:
60 edge: {}
61 backend:
62 internal: true
63
64volumes:
65 caddy_data: {}
66 caddy_config: {}