-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.yml
More file actions
54 lines (45 loc) · 1.63 KB
/
compose.yml
File metadata and controls
54 lines (45 loc) · 1.63 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
# RouteLens Docker Compose Configuration
# Documentation: https://github.com/yuanweize/RouteLens
#
# Quick Start:
# 1. Copy this file: curl -O https://raw.githubusercontent.com/yuanweize/RouteLens/master/compose.yml
# 2. (Optional) Create .env file with RS_JWT_SECRET
# 3. Run: docker compose up -d
# 4. Open: http://localhost:8080
services:
routelens:
image: ghcr.io/yuanweize/routelens:latest
container_name: routelens
# Run as root to avoid permission issues with bind mounts
user: root
# Network mode: host recommended for accurate MTR/Ping TTL control
# If using bridge mode, uncomment ports section below
network_mode: host
# Required capabilities for raw socket operations (ping/traceroute)
cap_add:
- NET_RAW
- NET_ADMIN
volumes:
# Persistent data: SQLite database and GeoIP files
- ./data:/data
# environment:
# ⚠️ SECURITY: Set this in production! Uncomment and change the value.
# If not set, a random secret is generated (sessions lost on restart)
# RS_JWT_SECRET: your-super-secure-random-string-at-least-32-chars
# Optional: Probe interval in seconds (default: 30)
# RS_PROBE_INTERVAL: 60
# Optional: Log level (debug/info/warn/error)
# RS_LOG_LEVEL: info
# Uncomment if using bridge mode instead of host mode
# ports:
# - "8080:8080"
restart: unless-stopped
# Alternative: Bridge network mode (less accurate but more isolated)
# Uncomment below and comment out network_mode: host above
#
# services:
# routelens:
# ...
# ports:
# - "8080:8080"
# # Remove network_mode: host