部署方式

Emby-Hub 是你管理Emby最好的选择

介绍

用户管理 自助注册 卡密激活 多种通知 用户到期通知 丰富的资源浏览 风控管理 入库状态等

参数只针对当前版本 新版本新增参数请自行替换
参数只针对当前版本 新版本新增参数请自行替换
SPRING_DATASOURCE_PASSWORD:数据库密码
EMBY_APIKEY:Emby秘钥
EMBY_URL:Emby地址
EMBY_COPYFROMUSERID:Emby复制用户id
TMDB_APITOKEN:TMDB token
HTTP_PROXY:http代理
HTTPS_PROXY:https代理

使用docker-compose部署

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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
version: '3'
services:
emby-hub:
image: ciwei123321/emby-hub:latest
privileged: true
ports:
- "8080:8080"
volumes:
- ./data:/data
- /etc/hosts:/etc/hosts
container_name: emby-hub
restart: always
environment:
- SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/emby-hub?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=
- EMBY_APIKEY=apikey
- EMBY_URL=http://ip:port/emby/
- EMBY_COPYFROMUSERID=
- TMDB_APITOKEN=tmdb api token
- TMDB_APIKEY=tmdb api key
- TMDB_IMAGE_URL=https://image.tmdb.org/t/p/original
- TZ=Asia/Shanghai
- HTTP_PROXY_ENABLED=true
- HTTP_PROXY=http://ip:port
- HTTPS_PROXY=http://ip:port
- NO_PROXY=172.17.0.1,127.0.0.1,localhost,emby-hub-search
- LICENSE_FILE=/data/license.dat
- EMBY_HUB_SEARCH_URL=http://emby-hub-search:8082
networks:
- emby-hub-network
links:
- db
- emby-hub-search
depends_on:
- db
- emby-hub-search

db:
image: mysql:8.4.6
container_name: mysql_container
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE: emby-hub
TZ: "Asia/Shanghai"
LANG: en_US.UTF-8
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --group_concat_max_len=102400
ports:
- "3306:3306"
volumes:
- ./mysql-data:/var/lib/mysql
restart: always
networks:
- emby-hub-network

emby-hub-web:
image: ciwei123321/emby-hub-web:latest
container_name: emby-hub-web
restart: always
environment:
- TZ=Asia/Shanghai
- EMBY_HUB_API_URL=http://emby-hub:8080
- LANG=en_US.UTF-8
- IMAGE_URL=https://image.tmdb.org/t/p/
ports:
- "8081:8081"
networks:
- emby-hub-network
links:
- emby-hub
depends_on:
- emby-hub

emby-hub-search:
image: ciwei123321/emby-hub-search:latest
container_name: emby-hub-search
restart: always
ports:
- "8082:8082"
environment:
- PORT=8082
- CHANNELS=tgsearchers3,Aliyun_4K_Movies,bdbdndn11,yunpanx,bsbdbfjfjff,yp123pan,sbsbsnsqq,yunpanxunlei,tianyifc,BaiduCloudDisk,txtyzy,peccxinpd,gotopan,PanjClub,kkxlzy,baicaoZY,MCPH01,bdwpzhpd,ysxb48,jdjdn1111,yggpan,MCPH086,zaihuayun,Q66Share,Oscar_4Kmovies,ucwpzy,shareAliyun,alyp_1,dianyingshare,Quark_Movies,XiangxiuNBB,ydypzyfx,ucquark,xx123pan,yingshifenxiang123,zyfb123,tyypzhpd,tianyirigeng,cloudtianyi,hdhhd21,Lsp115,oneonefivewpfx,qixingzhenren,taoxgzy,Channel_Shares_115,tyysypzypd,vip115hot,wp123zy,yunpan139,yunpan189,yunpanuc,yydf_hzl,leoziyuan,pikpakpan,Q_dongman,yoyokuakeduanju
# 必须指定启用的插件,多个插件用逗号分隔
- ENABLED_PLUGINS=labi,zhizhen,shandian,duoduo,muou,wanou
- CACHE_ENABLED=true
- CACHE_PATH=/app/cache
- CACHE_MAX_SIZE=100
- CACHE_TTL=60
- ASYNC_PLUGIN_ENABLED=true
- ASYNC_RESPONSE_TIMEOUT=4
- ASYNC_MAX_BACKGROUND_WORKERS=20
- ASYNC_MAX_BACKGROUND_TASKS=100
- ASYNC_CACHE_TTL_HOURS=1
# 如果需要代理,取消下面的注释并设置代理地址
# - PROXY=socks5://proxy:7897
volumes:
- ./cache:/app/cache
networks:
- emby-hub-network
healthcheck:
test: [ "CMD", "wget", "-q", "--spider", "http://localhost:8082/api/health" ]
interval: 30s
timeout: 5s
retries: 3

networks:
emby-hub-network:

Emby-Hub 自动化脚本部署

1
2
3
wget -O setup_emby_hub.sh https://raw.githubusercontent.com/ciweigg2/emby-hub-introduction/refs/heads/main/shell/setup_emby_hub.sh
chmod +x setup_emby_hub.sh
./setup_emby_hub.sh