配置文件修改包 https://www.123684.com/s/9zr9-PobGA?提取码:qIfi
一键拉取 commpose代码
services:
service.nginx-emby:
image: nginx:latest
container_name: nginx-emby
# 更改为默认host网络,纠正流量标识,直接占用宿主机端口,docker层会禁用端口映射
network_mode: host
# 如果需要使用bridge(桥接)网络,请取消ports(端口映射)注释,并注释network_mode
# 端口映射规则为,宿主机端口:容器内部端口
# ports:
# - 8091:8091
# - 8095:8095
# 如果遇到海报全部裂开或日志中 permission denied,以下二选一
# 还不行的话,自己给宿主机 embyCache 读写权限
# privileged: true
# entrypoint: |
# /bin/sh -c "chmod -R 777 /var/cache/nginx/emby"
volumes:
- /vol1/1000/docker/emby-nginx/nginx.conf:/etc/nginx/nginx.conf
- /vol1/1000/docker/emby-nginx/conf.d:/etc/nginx/conf.d
- /vol1/1000/docker/emby-nginx/embyCache:/var/cache/nginx/emby
- /vol1/1000/docker/emby-nginx/log:/var/log/nginx
restart: always
修改文件夹中反代配置文件 /conf.d/constant.js
端口修改位置为 /conf.d/includes/http.conf 或者 https.conf
评论区