-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.13 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
version: '3.8'
services:
# 后端服务
backend:
build: ./backend
container_name: remote-claude-backend
ports:
- "9090:9090"
volumes:
- ./backend/.env:/app/.env
- /tmp:/tmp # tmux socket
environment:
- PORT=9090
privileged: true # tmux 需要
network_mode: host # 使用主机网络,方便访问 tmux
restart: unless-stopped
# 前端服务
frontend:
build: ./frontend
container_name: remote-claude-frontend
ports:
- "80:80"
depends_on:
- backend
extra_hosts:
- "host.docker.internal:host-gateway" # Linux 需要这个
restart: unless-stopped
# Frp 客户端(可选)
frpc:
image: snowdreamtech/frpc:latest
container_name: remote-claude-frpc
volumes:
- ./frp/frpc.ini:/etc/frp/frpc.ini
restart: unless-stopped
profiles:
- frp
# Cloudflare Tunnel(可选)
cloudflared:
image: cloudflare/cloudflared:latest
container_name: remote-claude-cloudflared
command: tunnel --no-autoupdate run --token ${CLOUDFLARE_TUNNEL_TOKEN}
restart: unless-stopped
profiles:
- cloudflare