services:
siyuan:
container_name: siyuan
image: b3log/siyuan
command: ['--workspace=/siyuan/workspace/', '--accessAuthCode=${AuthCode}']
user: ${TRIM_UID}:${TRIM_GID}
ports:
- 6806:6806
volumes:
- /var/apps/docker-siyuan/shares/siyuan/workspace:/siyuan/workspace
- /var/apps/docker-siyuan/var/config:/.config
restart: unless-stopped
environment:
- TZ=Etc/UTC
networks:
- trim-default
networks:
trim-default:
external: true
今天在思源的compose中把 飞牛仓库的镜像 替换成了 思源官方的最新镜像,目前使用没有遇到问题。记得在目录下放一个.env文件,或者ComposeFile中的${AuthCode}直接替换你的token
AuthCode=<你的token>