-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 2.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (42 loc) · 2.57 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
# SubConverter-Extended 的 Compose 示例 / Example compose for SubConverter-Extended.
services:
subconverter-extended:
container_name: SubConverter-Extended
image: aethersailor/subconverter-extended:latest
ports:
# 保留既有的全接口端口发布,方便局域网设备直接访问;这表示“可能被外部访问”,
# 但不能单凭该行判断服务已暴露公网,还需结合宿主防火墙、云安全组、NAT 和反代判断。
# 若只允许宿主机访问,可手动改为 "127.0.0.1:25500:25500/tcp"。
# Keep the existing all-interface publication for LAN compatibility. It
# indicates possible exposure, not proven Internet reachability. For
# host-only access, manually use "127.0.0.1:25500:25500/tcp" instead.
- "25500:25500/tcp"
restart: unless-stopped
environment:
TZ: Asia/Shanghai
# 按需取消注释并修改;环境变量会覆盖 pref.toml 中的对应配置。
# Uncomment and edit as needed; environment variables override pref.toml.
# MANAGED_CONFIG_PREFIX: "http://your-domain-or-ip:25500"
# 默认 lan 保持既有内网行为;确认公网可达的部署请显式选择 public 或 strict。
# Default lan preserves existing LAN behavior. If Internet reachability is
# confirmed, explicitly select public or strict.
# SUBCONVERTER_SECURITY_PROFILE: public
# SUBCONVERTER_ALLOW_PUBLIC_UPLOAD: "false"
# Dashboard 防爆破默认只信任 socket peer。只有容器端口不对外直通、且入口代理会覆盖所选头时才同时配置以下两项。
# Dashboard brute-force protection trusts only the socket peer by default. Set both only when the container is not directly reachable and the edge proxy overwrites the selected header.
# SUBCONVERTER_DASHBOARD_CLIENT_IP_HEADER: x-forwarded-for
# SUBCONVERTER_DASHBOARD_TRUSTED_PROXY_CIDRS: "172.18.0.0/16"
volumes:
# 启动前请先创建 ./base/pref.toml;不要将整个 ./base 挂载到 /base,
# 否则会遮盖镜像内随版本更新的规则和模板。
# Create ./base/pref.toml before startup. Do not mount all of ./base to /base,
# or image-provided rules and templates will be hidden.
- "./base/pref.toml:/base/pref.toml:ro"
# 持久化 /dashboard 统计数据;仅在 pref.toml 中启用 statistics 后写入。
# Persist /dashboard statistics; data is written only when statistics is enabled.
- "./stats:/base/stats"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"