使用docker-compose.yml部署思源笔记
services:
siyuan:
command:
- "--workspace=/siyuan/workspace/"
- "--accessAuthCode=8255"
container_name: "siyuan"
entrypoint:
- "/opt/siyuan/entrypoint.sh"
environment:
- "LANG=zh_CN.UTF-8"
- "LC_ALL=zh_CN.UTF-8"
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
- "TZ=Asia/Shanghai"
- "HOME=/home/siyuan"
- "RUN_IN_CONTAINER=true"
hostname: "73d9befaf1b3"
image: "apkdv/siyuan-unlock"
ipc: "private"
labels:
maintainer: "1009147564@qq.com"
logging:
driver: "db"
options: {}
mac_address: "02:42:ac:11:00:05"
network_mode: "bridge"
ports:
- "6806:6806/tcp"
restart: "always"
volumes:
- "/volume4/dockerBC/siyuan:/siyuan/workspace"
working_dir: "/opt/siyuan"
version: "3.6"
默认评论
Halo系统提供的评论