
emby开心版本amilys大佬_Docker Hub地址:https://hub.docker.com/r/amilys/embyserver
emby_开心版本amilys大佬_稳定版后台地址:http://localhost:8896/
emby_开心版本amilys大佬_beta版后台地址:http://localhost:8396/
镜像架构兼容:linux/amd64(x86-64 )
一 、部署emby开心版(开心版本amilys大佬)
1 、Debian终端命令创建 docker-compose.yml
文件
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
| mkdir -p /mnt/mydisk/home/emby-amilys/config && \ touch /mnt/mydisk/home/emby-amilys/config/hosts && \ cd /mnt/mydisk/home/emby-amilys && \ touch docker-compose.yml && \ cat > docker-compose.yml <<'EOF' services: emby: container_name: emby-amilys image: amilys/embyserver:latest restart: always network_mode: bridge ports: - 8896:8096/TCP volumes: - ./config:/config:/volume1/docker/emby/config - ./metadata:/volume1/docker/emby/metadata - ./config/hosts:/etc/hosts - /mnt/ARS2-NFS/nas/link:/volume2/video deploy: resources: limits: memory: 8G environment: UID: 0 GID: 0 GIDLIST: 100,101 devices: - /dev/dri:/dev/dri EOF
docker-compose up -d
|
2 、拉取并运行
1
| cd /mnt/mydisk/home/emby-amilys && docker-compose up -d
|
3 、停止并删除
1
| cd /mnt/mydisk/home/emby-amilys && docker-compose down
|
4 、拉取镜像
1
| docker pull amilys/embyserver:latest
|
5 、容器升级
1 2 3 4 5
| cd /mnt/mydisk/home/emby-amilys && \ docker-compose down && \ docker-compose pull && \ docker-compose up -d && \ docker image prune -f
|
6 、emby开心版美化
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
| cat > /mnt/mydisk/home/emby-amilys/config/config/ext.sh <<'EOF'
echo "Emby扩展启动脚本"
cat > /etc/hosts <<EOOF 104.16.61.155 image EOOF
MediaId="3,845,2486" sed -i '/this.parentId/s/""\|"[0-9]\+"\|"\([0-9]\+,\)\+[0-9]\+"/"'$MediaId'"/g' /system/dashboard-ui/emby-crx/config.js
extmod='["embyLaunchPotplayer","ede.user","actorPlus"]' extmod='[]' sed -i '/\ extmod/s/\[.*\]/'$extmod'/g' /system/dashboard-ui/ext.js exit 0
EOF
docker restart emby-amilys
|
二 、容器维护命令
1 、查看所有运行容器的名称
1
| docker ps -a --format "{{.Names}}"
|
2 、停止 emby-amilys 容器
3 、启动 emby-amilys 容器
1
| docker start emby-amilys
|
4 、重启 emby-amilys 容器
1
| docker restart emby-amilys
|
5 、进入 emby-amilys 容器
1 2 3
|
docker exec -it emby-amilys sh
|
6 、查看 emby-amilys 配置文件
1
| cat /mnt/mydisk/home/emby-amilys/docker-compose.yml
|
Nginx 配置
后台地址:https://emby.example.com:666
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
| mkdir -pm 755 /etc/nginx/conf.d && \ touch /etc/nginx/conf.d/emby.conf && \ cat <<'EOF' | sed '1!{/^[[:space:]]*#/d;/^[[:space:]]*$/d}' > /etc/nginx/conf.d/emby.conf
server { listen 666 ssl; listen [::]:666 ssl;
server_name emby.example.com;
ssl_certificate /etc/nginx/keyfile/cert.pem; ssl_certificate_key /etc/nginx/keyfile/key.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_ciphers HIGH:!aNULL:!MD5;
location / { proxy_pass http://10.10.10.251:8896; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Range $http_range; proxy_set_header If-Range $http_if_range; proxy_redirect off; proxy_buffering on; proxy_http_version 1.1; } charset utf-8; error_page 404 500 502 503 504 /50x.html; location = /50x.html { root /var/www/html; } } EOF
sudo systemctl restart nginx
|
Docker 部署 emby 开心版(amilys大佬版)