官方文档 演示站点:https://tv.cddone.com
部署
部署Docker教程:https://bj.cddone.com/doc/14/
1、创建工作目录
mkdir -p /home/docker/synctv && cd /home/docker/synctv
2、创建wordpress容器yaml
vim docker-compose.yaml
- 参数说明:
- 设置镜像
- 设置容器名称
- 设置容器自启动
- 映射端口
- 映射目录
version: '3.9'
services:
synctv:
image: synctvorg/synctv
container_name: synctv
restart: always
ports:
- '8080:8080'
environment:
- PUID=0
- PGID=0
- TZ=Asia/Shanghai
volumes:
- './data:/root/.synctv'
3、启动wordpress容器
docker-compose up -d
4、查看容器状态
docker ps
5、设置nginx反向代理
server {
listen 443 ssl;
server_name tv.cddone.com;
location / {
proxy_pass http://localhost:8080;
proxy_cache off;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Range $http_range;
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header If-Range $http_if_range;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 200m;
}
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...