-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (49 loc) · 1.4 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (49 loc) · 1.4 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
version: '3.8'
services:
tailscale-mcp-server:
build:
context: .
dockerfile: Dockerfile
image: tailscale-mcp-server:latest
container_name: tailscale-mcp-server
restart: unless-stopped
# Environment variables for Tailscale authentication
environment:
# Option 1: API Key authentication (recommended for personal use)
- TAILSCALE_API_KEY=${TAILSCALE_API_KEY}
# Option 2: OAuth authentication (recommended for applications)
# - TAILSCALE_CLIENT_ID=${TAILSCALE_CLIENT_ID}
# - TAILSCALE_CLIENT_SECRET=${TAILSCALE_CLIENT_SECRET}
# Optional: Specify tailnet (defaults to "-")
- TAILSCALE_TAILNET=${TAILSCALE_TAILNET:-}
# Optional: Expose port for HTTP mode (if implemented)
# ports:
# - "8080:8080"
# Security configurations
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
# Health check
healthcheck:
test: ["/tailscale-mcp-server", "--health-check"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Resource limits
deploy:
resources:
limits:
memory: 128M
cpus: '0.5'
reservations:
memory: 64M
cpus: '0.1'
# Logging configuration
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"