Linux centos 7安装1panel面板搭建容器docker用法,在vps服务器中使用编排功能搭建比特彗星bitcomet-webui版本
Linux centos 7安装1panel面板搭建容器docker用法,在vps服务器中使用编排功能搭建比特彗星bitcomet-webui版本仓库
https://hub.docker.com/r/wxhere/bitcomet-webui
建议v2.12.3及以上,或者使用latest的最新版
services:
sandbox:
container_name: bitcomet-webui
image: wxhere/bitcomet-webui:latest
volumes:
# mounts the host directory into the container to store config files
- ./BitComet:/root/.config/BitComet:rw
# mounts a host directory into the container to store downloaded files
- ./Downloads:/root/Downloads:rw
ports:
# BitComet WebUI port
- 6080:6080
# BitTorrent ports
- 6082:6082
- 6082:6082/udp
environment:
- BITCOMET_WEBUI_PORT=6080
- BITCOMET_BT_PORT=6082
- WEBUI_USERNAME=admin
- WEBUI_PASSWORD=itzmx.com
访问服务器 ip:6080 登录比特彗星
配置文件和下载的文件存储在路径
/opt/1panel/docker/compose/bitcomet-webui/BitComet
/opt/1panel/docker/compose/bitcomet-webui/Downloads
注:如果要修改配置文件请先停止容器,修改完成后在启动,这样才能修改成功
BitComet.xml 推荐设置
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<BitComet>
<Settings>
<DiskCacheMaxSizeMB>256</DiskCacheMaxSizeMB>
<LTSeedCacheMaxSizeMB>256</LTSeedCacheMaxSizeMB>
<StartupAutoRunTask>true</StartupAutoRunTask>
<PassportLastUser></PassportLastUser>
<PassportLastUserPassword></PassportLastUserPassword>
<GlobalMaxUploadRate>10485760</GlobalMaxUploadRate>
<ConditionAutoStopTask>false</ConditionAutoStopTask>
<bittorrent.max_connections_per_ltseed>10</bittorrent.max_connections_per_ltseed>
<network.max_connections>1500</network.max_connections>
<ListenPort>6082</ListenPort>
<network.start_connect_interval_ms>0</network.start_connect_interval_ms>
<network.max_connecting_connections>60</network.max_connecting_connections>
<network.max_connecting_connections_per_tracker>10000</network.max_connecting_connections_per_tracker>
<network.tcp_connection_timeout>10</network.tcp_connection_timeout>
<LastSaveLocation>/root/Downloads</LastSaveLocation>
<bittorrent.enable_v1_upgrade_to_v2>true</bittorrent.enable_v1_upgrade_to_v2>
<bittorrent.torrent_http_try_max_count>1000</bittorrent.torrent_http_try_max_count>
<bittorrent.torrent_http_try_interval>5</bittorrent.torrent_http_try_interval>
<system.compact_memory_interval>0</system.compact_memory_interval>
<dht.udp_send_queue_threshold>1</dht.udp_send_queue_threshold>
<network.dns_query_thread_count>100</network.dns_query_thread_count>
<network.enable_open_dns>false</network.enable_open_dns>
<EnableDHT>false</EnableDHT>
<bittorrent.anti_leech_stable_sec>180</bittorrent.anti_leech_stable_sec>
<bittorrent.anti_leech_min_byte>10000</bittorrent.anti_leech_min_byte>
<bittorrent.anti_leech_banned_ports>15000</bittorrent.anti_leech_banned_ports>
<bittorrent.anti_leech_banned_peer_ids>XL0018</bittorrent.anti_leech_banned_peer_ids>
<RssFetchInterval>2</RssFetchInterval>
<RssFeedMaxItems>5</RssFeedMaxItems>
<EnableAutoDownloadRssTorrent>true</EnableAutoDownloadRssTorrent>
<bittorrent.utp_after_holepunch>0</bittorrent.utp_after_holepunch>
<bittorrent.save_connected_peers_only>true</bittorrent.save_connected_peers_only>
<bittorrent.separate_sources_for_failed_piece>false</bittorrent.separate_sources_for_failed_piece>
<bittorrent.max_torrent_size_mb>100</bittorrent.max_torrent_size_mb>
<HttpDownloadTryAgainMaxCount>10000</HttpDownloadTryAgainMaxCount>
<HttpDownloadDefaultConnectionNumber>300</HttpDownloadDefaultConnectionNumber>
<http.max_mirror_count>1000</http.max_mirror_count>
<HttpDownloadConnectionCacheSize>16777216</HttpDownloadConnectionCacheSize>
<TotalUpload>0</TotalUpload>
<TotalDownload>0</TotalDownload>
<WebInterfaceUsername>admin</WebInterfaceUsername>
<WebInterfacePassword>itzmx.com</WebInterfacePassword>
<WebInterfacePort>6080</WebInterfacePort>
<EnableAddTrackerList>true</EnableAddTrackerList>
<TrackerListForNewTorrent>http://tracker1.itzmx.com:8080/announce
http://tracker2.itzmx.com:6961/announce
http://tracker3.itzmx.com:6961/announce
http://tracker4.itzmx.com:2710/announce
udp://tracker1.itzmx.com:8080/announce
udp://tracker2.itzmx.com:6961/announce
udp://tracker3.itzmx.com:6961/announce
udp://tracker4.itzmx.com:2710/announce
http://tracker.opentrackr.org:1337/announce
udp://tracker.opentrackr.org:1337/announce</TrackerListForNewTorrent>
<TrackerListUpdateUrl>http://github.itzmx.com/1265578519/OpenTracker/master/tracker.txt</TrackerListUpdateUrl>
<TrackerListUpdateUrlList>http://github.itzmx.com/1265578519/OpenTracker/master/tracker.txt</TrackerListUpdateUrlList>
<EnableBtTaskIpFilter>true</EnableBtTaskIpFilter>
</Settings>
</BitComet>
注:v2.12.3版network.tcp_connection_timeout不起效果,会强制默认值为128秒超时,也就是说这个v2.12.3版本可以调整network.max_connecting_connections为750,后续修复了在改回60
请问下大佬docker部署的用的bridge网络,一直端口阻塞怎么办? 路由器22228端口转发和ipv6防火墙都设置好了:
TCP Connections: Established: 22 / Half-Open: 200 / Pending: 3
Established: BT:21 incoming:1
Half-Open: BT:199 ltseed:1
Pending: ltseed:3
LAN IP: 172.17.0.4
WAN IP: 我的公网ipv4
BitTorrent Listen Port (TCP): 22228 (Blocked by Firewall/Router)
IPv4: Blocked by Firewall/Router
IPv6: Not Detected
BitTorrent Listen Port (UDP): 22228 (Blocked by Firewall/Router)
IPv4: Blocked by Firewall/Router
IPv6: Not Detected
LSD Listen Port (UDP): 6771
Remote Access Listen Port (TCP): 6080 (Blocked by Firewall/Router)
IPv4: Blocked by Firewall/Router
IPv6: Not Detected
UPnP NAT port mapping: Waiting for query freetosayno 发表于 2024/12/30 12:51
请问下大佬docker部署的用的bridge网络,一直端口阻塞怎么办? 路由器22228端口转发和ipv6防火墙都设置好了 ...
这个是1panel里部署的?如果你不是vps服务器的话,可能你要和运营商开通公网ip
小樱 发表于 2024/12/30 18:53
这个是1panel里部署的?如果你不是vps服务器的话,可能你要和运营商开通公网ip
家里nas部署,有公网ip 这是docker-compose文件
services:
bitcomet-webui:
container_name: bitcomet-webui
image: wxhere/bitcomet-webui:latest
volumes:
# mounts the host directory into the container to store config files
- ./BitComet:/root/.config/BitComet:rw
# mounts a host directory into the container to store downloaded files
- /volume2/localshare-dsm/bitcomet:/root/Downloads:rw
ports:
# BitComet WebUI port
- 6080:6080
# BitTorrent ports
- 22228:22228
- 22228:22228/udp
environment:
- BITCOMET_WEBUI_PORT=6080
- BITCOMET_BT_PORT=22228
- WEBUI_USERNAME=USERNAM
- WEBUI_PASSWORD=PASSWORD
network_mode: bridge freetosayno 发表于 2024/12/31 21:13
家里nas部署,有公网ip
那使用的环境不一样,需要你联系nas厂商问一下怎么搞,你能内网访问到但是公网不行很有可能是被nas内置防火墙拦截了
教程这里是1panel,不需要做任何其他操作,跟着教程来就能直接公网ip访问了 小樱 发表于 2024/12/31 23:51
那使用的环境不一样,需要你联系nas厂商问一下怎么搞,你能内网访问到但是公网不行很有可能是被nas内置防 ...
切换成host网络ipv4都通了,但是ipv6没通,路由器的v6防火墙也开了,似乎还是容器本身的问题
LAN IP: 192.168.123.8 IPv6: 240e:{:105:} :257e
WAN IP: 14.15.20.10 IPv6: 240e:{:105:} :257e
BitTorrent Listen Port (TCP): 22228 (Opened in Firewall/Router)
IPv4: Opened in Firewall/Router
IPv6: Blocked by Firewall/Router
BitTorrent Listen Port (UDP): 22228 (Opened in Firewall/Router)
IPv4: Opened in Firewall/Router
IPv6: Blocked by Firewall/Router
LSD Listen Port (UDP): 6771
Remote Access Listen Port (TCP): 8145 (Blocked by Firewall/Router)
IPv4: Blocked by Firewall/Router
IPv6: Blocked by Firewall/Router
UPnP NAT port mapping: Waiting for query freetosayno 发表于 2025/1/2 11:28
切换成host网络ipv4都通了,但是ipv6没通,路由器的v6防火墙也开了,似乎还是容器本身的问题
我这里1panel测试,用什么模式端口都是正常开放的,不过ipv6不清楚,因为我的vps服务器没有ipv6
页:
[1]