From f40ffadd36a26317135e63d238abcc14309430af Mon Sep 17 00:00:00 2001 From: SkyDependence Date: Sun, 1 Dec 2024 19:22:56 +0800 Subject: [PATCH] docs: add docker deployment method --- README.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e4f45e5..589aeff 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ 本项目的前端地址:[tgDriveFront](https://github.com/SkyDependence/tgDrive-front) -[自部署指南](#自部署) | [PicGo 配置](#picgo-配置) +[自部署指南](#自部署) | [PicGo 配置](#picgo-配置) | [Docker 部署]() 目前打算逐步开发为网盘,但作为图床的使用场景已经相当成熟。 @@ -67,6 +67,25 @@ ![image](https://github.com/user-attachments/assets/dffeeb23-8f63-4bdb-a676-0bd693a2bede) +## Docker 部署 + +拉取镜像: + +``` +docker pull nanyangzesi/tgdrive:latest +``` + +运行容器: + +``` +docker run -d -p 8085:8085 --name tgdrive nanyangzesi/tgdrive:latest +``` + +运行容器且开机自启动: +``` +docker run -d -p 8085:8085 --name tgdrive --restart always nanyangzesi/tgdrive:latest +``` + ## 支持与反馈 如果您觉得项目有帮助,请点个 Star 支持我谢谢喵!您的支持是我最大的动力!