设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 1199|回复: 7

Linux centos 7安装1panel面板搭建容器docker用法,在vps服务器中使用编排功能搭建比特彗星bitcomet-webui版本

[复制链接]
 成长值: 576

签到天数: 4817 天

[LV.Master]伴坛终老

发表于 2024/12/20 22:16 | 显示全部楼层 |阅读模式 |Google Chrome 131.0.0.0|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
Linux centos 7安装1panel面板搭建容器docker用法,在vps服务器中使用编排功能搭建比特彗星bitcomet-webui版本

仓库
https://hub.docker.com/r/wxhere/bitcomet-webui
建议v2.12.3及以上,或者使用latest的最新版

1.png

2.png

3.png

  1. services:
  2.     sandbox:
  3.         container_name: bitcomet-webui
  4.         image: wxhere/bitcomet-webui:latest
  5.         volumes:
  6.             # mounts the host directory into the container to store config files
  7.             - ./BitComet:/root/.config/BitComet:rw
  8.             # mounts a host directory into the container to store downloaded files
  9.             - ./Downloads:/root/Downloads:rw
  10.         ports:
  11.             # BitComet WebUI port
  12.             - 6080:6080
  13.             # BitTorrent ports
  14.             - 6082:6082
  15.             - 6082:6082/udp
  16.         environment:
  17.             - BITCOMET_WEBUI_PORT=6080
  18.             - BITCOMET_BT_PORT=6082
  19.             - WEBUI_USERNAME=admin
  20.             - WEBUI_PASSWORD=itzmx.com
复制代码


访问服务器 ip:6080 登录比特彗星

配置文件和下载的文件存储在路径
/opt/1panel/docker/compose/bitcomet-webui/BitComet
/opt/1panel/docker/compose/bitcomet-webui/Downloads

注:如果要修改配置文件请先停止容器,修改完成后在启动,这样才能修改成功
BitComet.xml 推荐设置
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <BitComet>
  3.   <Settings>
  4.     <DiskCacheMaxSizeMB>256</DiskCacheMaxSizeMB>
  5.     <LTSeedCacheMaxSizeMB>256</LTSeedCacheMaxSizeMB>
  6.     <StartupAutoRunTask>true</StartupAutoRunTask>
  7.     <PassportLastUser></PassportLastUser>
  8.     <PassportLastUserPassword></PassportLastUserPassword>
  9.     <GlobalMaxUploadRate>10485760</GlobalMaxUploadRate>
  10.     <ConditionAutoStopTask>false</ConditionAutoStopTask>
  11.     <bittorrent.max_connections_per_ltseed>10</bittorrent.max_connections_per_ltseed>
  12.     <network.max_connections>1500</network.max_connections>
  13.     <ListenPort>6082</ListenPort>
  14.     <network.start_connect_interval_ms>0</network.start_connect_interval_ms>
  15.     <network.max_connecting_connections>60</network.max_connecting_connections>
  16.     <network.max_connecting_connections_per_tracker>10000</network.max_connecting_connections_per_tracker>
  17.     <network.tcp_connection_timeout>10</network.tcp_connection_timeout>
  18.     <LastSaveLocation>/root/Downloads</LastSaveLocation>
  19.     <bittorrent.enable_v1_upgrade_to_v2>true</bittorrent.enable_v1_upgrade_to_v2>
  20.     <bittorrent.torrent_http_try_max_count>1000</bittorrent.torrent_http_try_max_count>
  21.     <bittorrent.torrent_http_try_interval>5</bittorrent.torrent_http_try_interval>
  22.     <system.compact_memory_interval>0</system.compact_memory_interval>
  23.     <dht.udp_send_queue_threshold>1</dht.udp_send_queue_threshold>
  24.     <network.dns_query_thread_count>100</network.dns_query_thread_count>
  25.     <network.enable_open_dns>false</network.enable_open_dns>
  26.     <EnableDHT>false</EnableDHT>
  27.     <bittorrent.anti_leech_stable_sec>180</bittorrent.anti_leech_stable_sec>
  28.     <bittorrent.anti_leech_min_byte>10000</bittorrent.anti_leech_min_byte>
  29.     <bittorrent.anti_leech_banned_ports>15000</bittorrent.anti_leech_banned_ports>
  30.     <bittorrent.anti_leech_banned_peer_ids>XL0018</bittorrent.anti_leech_banned_peer_ids>
  31.     <RssFetchInterval>2</RssFetchInterval>
  32.     <RssFeedMaxItems>5</RssFeedMaxItems>
  33.     <EnableAutoDownloadRssTorrent>true</EnableAutoDownloadRssTorrent>
  34.     <bittorrent.utp_after_holepunch>0</bittorrent.utp_after_holepunch>
  35.     <bittorrent.save_connected_peers_only>true</bittorrent.save_connected_peers_only>
  36.     <bittorrent.separate_sources_for_failed_piece>false</bittorrent.separate_sources_for_failed_piece>
  37.     <bittorrent.max_torrent_size_mb>100</bittorrent.max_torrent_size_mb>
  38.     <HttpDownloadTryAgainMaxCount>10000</HttpDownloadTryAgainMaxCount>
  39.     <HttpDownloadDefaultConnectionNumber>300</HttpDownloadDefaultConnectionNumber>
  40.     <http.max_mirror_count>1000</http.max_mirror_count>
  41.     <HttpDownloadConnectionCacheSize>16777216</HttpDownloadConnectionCacheSize>
  42.     <TotalUpload>0</TotalUpload>
  43.     <TotalDownload>0</TotalDownload>
  44.     <WebInterfaceUsername>admin</WebInterfaceUsername>
  45.     <WebInterfacePassword>itzmx.com</WebInterfacePassword>
  46.     <WebInterfacePort>6080</WebInterfacePort>
  47.     <EnableAddTrackerList>true</EnableAddTrackerList>
  48.     <TrackerListForNewTorrent>http://tracker1.itzmx.com:8080/announce&#13;
  49. http://tracker2.itzmx.com:6961/announce&#13;
  50. http://tracker3.itzmx.com:6961/announce&#13;
  51. http://tracker4.itzmx.com:2710/announce&#13;
  52. udp://tracker1.itzmx.com:8080/announce&#13;
  53. udp://tracker2.itzmx.com:6961/announce&#13;
  54. udp://tracker3.itzmx.com:6961/announce&#13;
  55. udp://tracker4.itzmx.com:2710/announce&#13;
  56. http://tracker.opentrackr.org:1337/announce&#13;
  57. udp://tracker.opentrackr.org:1337/announce</TrackerListForNewTorrent>
  58.     <TrackerListUpdateUrl>http://github.itzmx.com/1265578519/OpenTracker/master/tracker.txt</TrackerListUpdateUrl>
  59.     <TrackerListUpdateUrlList>http://github.itzmx.com/1265578519/OpenTracker/master/tracker.txt</TrackerListUpdateUrlList>
  60.     <EnableBtTaskIpFilter>true</EnableBtTaskIpFilter>
  61.   </Settings>
  62. </BitComet>
复制代码


注:v2.12.3版network.tcp_connection_timeout不起效果,会强制默认值为128秒超时,也就是说这个v2.12.3版本可以调整network.max_connecting_connections为750,后续修复了在改回60

[发帖际遇]: 一个袋子砸在了 小樱 头上,小樱 赚了 5 樱币. 幸运榜 / 衰神榜
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

签到天数: 16 天

[LV.4]偶尔看看III

发表于 2024/12/30 12:51 | 显示全部楼层 |Firefox 133.0|Windows 10
请问下大佬docker部署的用的bridge网络,一直端口阻塞怎么办? 路由器22228端口转发和ipv6防火墙都设置好了:

TCP Connections:         Established: 22 [MAX:Unlimited] / Half-Open: 200 [MAX: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
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

 成长值: 576

签到天数: 4817 天

[LV.Master]伴坛终老

发表于 2024/12/30 18:53 | 显示全部楼层 |Google Chrome 131.0.0.0|Windows 10
freetosayno 发表于 2024/12/30 12:51
请问下大佬docker部署的用的bridge网络,一直端口阻塞怎么办? 路由器22228端口转发和ipv6防火墙都设置好了 ...

这个是1panel里部署的?如果你不是vps服务器的话,可能你要和运营商开通公网ip

欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

签到天数: 16 天

[LV.4]偶尔看看III

发表于 2024/12/31 21:13 | 显示全部楼层 |Firefox 133.0|Windows 10
小樱 发表于 2024/12/30 18:53
这个是1panel里部署的?如果你不是vps服务器的话,可能你要和运营商开通公网ip

家里nas部署,有公网ip
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

签到天数: 16 天

[LV.4]偶尔看看III

发表于 2024/12/31 21:19 | 显示全部楼层 |Firefox 133.0|Windows 10
这是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 被钱袋砸中进医院,看病花了 2 樱币. 幸运榜 / 衰神榜
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

 成长值: 576

签到天数: 4817 天

[LV.Master]伴坛终老

发表于 2024/12/31 23:51 | 显示全部楼层 |Google Chrome 131.0.0.0|Windows 10
freetosayno 发表于 2024/12/31 21:13
家里nas部署,有公网ip

那使用的环境不一样,需要你联系nas厂商问一下怎么搞,你能内网访问到但是公网不行很有可能是被nas内置防火墙拦截了
教程这里是1panel,不需要做任何其他操作,跟着教程来就能直接公网ip访问了
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

签到天数: 16 天

[LV.4]偶尔看看III

发表于 2025/1/2 11:28 | 显示全部楼层 |Firefox 133.0|Windows 10
小樱 发表于 2024/12/31 23:51
那使用的环境不一样,需要你联系nas厂商问一下怎么搞,你能内网访问到但是公网不行很有可能是被nas内置防 ...

切换成host网络ipv4都通了,但是ipv6没通,路由器的v6防火墙也开了,似乎还是容器本身的问题

  1. LAN IP:         192.168.123.8 IPv6: 240e:{:105:} :257e
  2. WAN IP:         14.15.20.10 IPv6: 240e:{:105:} :257e
  3. BitTorrent Listen Port (TCP):         22228 (Opened in Firewall/Router)
  4.     IPv4:         Opened in Firewall/Router
  5.     IPv6:         Blocked by Firewall/Router
  6. BitTorrent Listen Port (UDP):         22228 (Opened in Firewall/Router)
  7.     IPv4:         Opened in Firewall/Router
  8.     IPv6:         Blocked by Firewall/Router
  9. LSD Listen Port (UDP):         6771
  10. Remote Access Listen Port (TCP):         8145 (Blocked by Firewall/Router)
  11.     IPv4:         Blocked by Firewall/Router
  12.     IPv6:         Blocked by Firewall/Router
  13. UPnP NAT port mapping:         Waiting for query
复制代码
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

 成长值: 576

签到天数: 4817 天

[LV.Master]伴坛终老

发表于 2025/1/2 17:53 | 显示全部楼层 |Google Chrome 131.0.0.0|Windows 10
freetosayno 发表于 2025/1/2 11:28
切换成host网络ipv4都通了,但是ipv6没通,路由器的v6防火墙也开了,似乎还是容器本身的问题

我这里1panel测试,用什么模式端口都是正常开放的,不过ipv6不清楚,因为我的vps服务器没有ipv6
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2025/3/13 14:32 , Processed in 0.182286 second(s), 23 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表