-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.tailscale.yml
More file actions
46 lines (42 loc) · 1.21 KB
/
docker-compose.tailscale.yml
File metadata and controls
46 lines (42 loc) · 1.21 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
version: '3.8'
services:
systemmanager:
build:
context: .
dockerfile: Dockerfile
container_name: systemmanager-mcp
environment:
- SYSTEMMANAGER_AUTH_MODE=tailscale
- MCP_TRANSPORT=sse
- PYTHONUNBUFFERED=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Access host Docker
- ./logs:/app/logs
networks:
- tailscale-net
expose:
- "8080"
restart: unless-stopped
tailscale:
image: tailscale/tailscale:latest
container_name: systemmanager-tailscale
hostname: systemmanager-mcp
environment:
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_STATE_DIR=/var/lib/tailscale
- TS_SERVE_CONFIG=/config/serve.json
volumes:
- tailscale-state:/var/lib/tailscale
- ./config:/config:ro
cap_add:
- NET_ADMIN
- SYS_MODULE
networks:
- tailscale-net
restart: unless-stopped
command: sh -c "tailscaled --tun=userspace-networking --socks5-server=localhost:1055 & sleep 5 && tailscale up --authkey=$${TS_AUTHKEY} --hostname=systemmanager-mcp && tailscale serve --bg --https=443 http://systemmanager:8080 && sleep infinity"
networks:
tailscale-net:
driver: bridge
volumes:
tailscale-state: