Docker项目
Docker部署MailCow邮件服务器
Docker部署Wireguard
Docker + Brook + Portainer搭建端口转发
Docker部署Omnivore
Docker部署Wallabag
Docker安装
【教程】Docker常用命令大全汇总
最详细的ubuntu 安装 docker教程-腾讯云开发者社区-腾讯云
Ubuntu | Docker — 从入门到实践
Docker部署mailserver邮件服务器
Docker部署Danted
Docker部署思源笔记
Docker部署Leanote
Docker部署RustDesk
Docker部署Rustdesk自建服务器:一步步教你搭建
官方安装文档
官方安装文档(宝塔面板)
Docker搭建Easyimage简单图床
Docker搭建lsky-pro图床
兰空图床(lsky-pro) 利用反向代理实现跨域访问
搭建私有docker仓库
搭建一个私有的Docker镜像仓库
私有仓库 | Docker — 从入门到实践
手把手教你搭建Docker私有仓库Harbor
基于Docker搭建私有镜像仓库-腾讯云开发者社区-腾讯云
Harbor备份与还原
担心Harbor数据丢失?谈谈Harbor的备份和恢复方法。
Docker之推送镜像到Harbor
关于Harbor私有仓库的搭建及使用-腾讯云开发者社区-腾讯云
harbor | Docker入门教程
Docker安装iRedMail邮件服务器
搭建自己的邮箱服务器 -iredmail-docker安装
如何设置 A 记录和 rDNS 记录
iRedmail | CONTAINERISATION & ORCHESTRATION
【Docker项目实战】使用Docker部署IP工具箱MyIP-阿里云开发者社区
本文档使用 MrDoc 发布
-
+
首页
Docker部署思源笔记
==[参考此链接(官方github)]==(https://github.com/siyuan-note/siyuan "参考此链接(官方github)") ```json docker run -d \ -v workspace_dir_host:workspace_dir_container \ -p 6806:6806 \ -e PUID=1001 -e PGID=1002 \ b3log/siyuan \ --workspace=workspace_dir_container \ --accessAuthCode=xxx ``` PUID: Custom user ID (optional, defaults to 1000 if not provided) PGID: Custom group ID (optional, defaults to 1000 if not provided) workspace_dir_host: The workspace folder path on the host workspace_dir_container: The path of the workspace folder in the container, as specified in --workspace accessAuthCode: Access authorization code (please be sure to modify, otherwise anyone can access your data) To simplify things, it is recommended to configure the workspace folder path to be consistent on the host and container, such as having both workspace_dir_host and workspace_dir_container configured as /siyuan/workspace. The corresponding startup command would be: ```shell docker run -d -v /www/wwwroot/www.xxx.com/workspace:/siyuan/workspace -p 9000:6806 -e PUID=1001 -e PGID=1002 b3log/siyuan --workspace=/siyuan/workspace/ --accessAuthCode=xxxxx ``` Docker Compose For users running Siyuan with Docker Compose, the environment variables PUID and PGID can be passed to customize the user and group IDs. Here's an example of a Docker Compose configuration: ```json version: "3.9" services: main: image: b3log/siyuan command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${AuthCode}'] ports: - 6806:6806 volumes: - /siyuan/workspace:/siyuan/workspace restart: unless-stopped environment: # A list of time zone identifiers can be found at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones - TZ=${YOUR_TIME_ZONE} - PUID=${YOUR_USER_PUID} # Customize user ID - PGID=${YOUR_USER_PGID} # Customize group ID ```
hunterzuo
2024年10月29日 22:21
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码