博客数据再次丢失,近期的文章没了
1、安装所需组件

apt update && apt upgrade -y && apt install curl sudo wget fuse3 unzip -y

Docker

curl -sSL https://get.docker.com/ | sh && systemctl start docker && curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose && systemctl enable docker

Rclone

curl https://rclone.org/install.sh | sudo bash

2、拉取镜像
Emby (注意 镜像映射路径为 /opt/emby )

docker run \
--net=host \
--name emby \
-v /home:/home \
-v /opt/emby:/config \
-e TZ="Asia/Shanghai" \
-e UID=1000 \
-e GID=100 \
-e GIDLIST=100 \
--restart always \
--device /dev/dri:/dev/dri \
-d emby/embyserver:latest

Alist (注意 镜像映射路径为 /opt/alist )

docker run \
--name=alist \
-p 10096:5244 \
--restart=always \
-v /opt/alist:/opt/alist/data \
-e PUID=0 \
-e PGID=0 \
-e UMASK=022 \
-d xhofe/alist:latest

Nginx (注意 容器映射路径为 /etc/nginx )

docker pull nginx && docker run --name test-nginx -p 8080:80 -d nginx && mkdir /etc/nginx && docker cp test-nginx:/etc/nginx/conf.d /etc/nginx/conf.d && docker cp test-nginx:/etc/nginx/nginx.conf /etc/nginx && docker cp test-nginx:/usr/share/nginx/html /etc/nginx/html && docker rm -f test-nginx && docker run -p 80:80 -p 443:443 --net host --name nginx-emby --restart always -v /etc/nginx/nginx.conf:/etc/nginx/nginx.conf -v /etc/nginx/conf.d:/etc/nginx/conf.d -v /etc/nginx/ssl:/etc/nginx/ssl -v /etc/nginx/log:/var/log/nginx -v /etc/nginx/html:/usr/share/nginx/html -v /etc/nginx/embyCache:/var/cache/nginx/emby -e TZ="Asia/Shanghai" -d nginx

2、设置
Alist 登录账号和密码

docker exec -it alist ./alist admin set 你的密码

Rclone 设置

rclone config
最后修改:2024 年 04 月 22 日
如果觉得我的文章对你有用,请随意赞赏