diff --git a/siyuan/.env.example b/siyuan/.env.example new file mode 100644 index 0000000..5fcc9f7 --- /dev/null +++ b/siyuan/.env.example @@ -0,0 +1,6 @@ +# SiYuan Note Configuration +SIYUAN_ACCESS_CODE=changeme123 +SIYUAN_PORT=6800 +SIYUAN_DATA_DIR=/mnt/media/siyuan +# Timezone +TZ=Etc/UTC diff --git a/siyuan/docker-compose.yaml b/siyuan/docker-compose.yaml new file mode 100644 index 0000000..d0cbaa1 --- /dev/null +++ b/siyuan/docker-compose.yaml @@ -0,0 +1,12 @@ +services: + siyuan: + image: b3log/siyuan + container_name: siyuan + command: [ "--workspace=/siyuan/workspace", "--accessAuthCode=${SIYUAN_ACCESS_CODE}" ] + ports: + - "${SIYUAN_PORT}:6800" + volumes: + - "${SIYUAN_DATA_DIR}:/siyuan/workspace" + restart: unless-stopped + environment: + - TZ=${TZ}