-
Notifications
You must be signed in to change notification settings - Fork 183
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 2.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (51 loc) · 2.28 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
services:
microwarp:
image: ghcr.io/ccbkkb/microwarp:latest
# build: . # uncomment to build from local sources
container_name: microwarp
restart: always
ports:
- "127.0.0.1:1080:1080"
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
# Required for WireGuard mark-based routing
- net.ipv4.conf.all.src_valid_mark=1
# Dual-stack: allow IPv6 inside the container network namespace
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.default.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
# environment:
# # --- protocol ---
# - TUNNEL_PROTOCOL=wireguard # wireguard (default, kernel) | masque (usque)
# - MASQUE_PROXY_MODE=l4-socks # l4-socks (TCP-only, lighter) | socks (gVisor L3)
# - MASQUE_HTTP2=0 # 1 = TCP/HTTP2 fallback (needs MASQUE_PROXY_MODE=socks)
# - MASQUE_SNI= # optional SNI override (full socks only)
# - GOMEMLIMIT=512MiB # soft cap Go RSS on MASQUE path
# - WARP_JWT= # Zero Trust team token (MASQUE register)
# - WARP_LICENSE= # optional WARP+ key
# - USQUE_DEVICE_NAME=MicroWARP
# # --- common ---
# - BIND_ADDR=0.0.0.0 # SOCKS5 listen address (use :: for dual-stack listen)
# - BIND_PORT=1080 # SOCKS5 listen port
# - SOCKS_USER=admin # optional auth username
# - SOCKS_PASS=123456 # optional auth password
# - ENABLE_IPV6=1 # 1/true = dual-stack WARP (default); 0 = IPv4 only
# - MTU=1280 # WireGuard MTU
# - KEEPALIVE=15 # PersistentKeepalive seconds
# - ENDPOINT_IP=162.159.192.1:4500 # custom WARP endpoint (WireGuard only)
# - GH_PROXY=https://github.ednovas.xyz # GitHub proxy prefix for wgcf download
# - TAILSCALE_CIDR=100.64.0.0/10 # IPv4 mesh return path CIDR
# - TAILSCALE_CIDR_V6=fd7a:115c:a1e0::/48 # IPv6 mesh return path CIDR
# - MICROWARP_TEST_MODE=0 # 1 = skip init (CI)
logging:
driver: json-file
options:
max-size: "3m"
max-file: "3"
volumes:
# Persists wg0.conf (WireGuard) and masque-config.json (MASQUE)
- warp-data:/etc/wireguard
volumes:
warp-data: