-
关于 Docker 思源笔记使用 Docker-compose 更改授权码的问题
2024-07-24 20:02@ muxue
你好。
按你说的更改 ymlversion: '3'
services:
siyuan:
image: b3log/siyuan:latest
container_name: fllsiyuan
restart: always
volumes:- /root/document/fllsynote:/siyuan
command: [--workspace=/root/document/fllsynote,--lang=zh_CN,--accessAuthCode=11]
ports: - "7777:6806"
启动之后。
使用 docker-compose logs 之后显示下面信息:
fllsiyuan | W 2024/07/24 19:23:09 file.go:210: determines whether [/root/document/fllsynote] is a directory failed: [lstat /root/document/fllsynote: permission denied]
fllsiyuan | W 2024/07/24 19:23:09 working.go:258: use the default workspace [/home/siyuan/SiYuan] since the specified workspace [/root/document/fllsynote] is not a dir
fllsiyuan | I 2024/07/24 19:23:09 working.go:147:我看显示错误,怎么修正错误?
进容器之后
/opt/siyuan/guide/20240530133126-axarxgx $ ls
20240530101000-3xv6jjr.sy 20240530101000-bgv304g.sy 20240530101000-hkgs92c 20240530101000-mpln2lp.sy storage
20240530101000-4qitucx 20240530101000-e6z5okf.sy 20240530101000-hkgs92c.sy 20240530101000-znj103k.sy
20240530101000-4qitucx.sy 20240530101000-flot1gj.sy 20240530101000-jp793ic.sy assets请贤达指教。
- /root/document/fllsynote:/siyuan
-
关于 Docker 思源笔记使用 Docker-compose 更改授权码的问题
2024-07-24 19:42/root/document/fllsynote
这个目录里面什么也没有。
怎么进行 VPS 宿主目录和 docker 容器的对应?有没有参考文件?
另外,谢谢 @muxue!