feat: Add Docker Compose configuration for Siyuan with an example environment file.
This commit is contained in:
6
siyuan/.env.example
Normal file
6
siyuan/.env.example
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# SiYuan Note Configuration
|
||||||
|
SIYUAN_ACCESS_CODE=changeme123
|
||||||
|
SIYUAN_PORT=6800
|
||||||
|
SIYUAN_DATA_DIR=/mnt/media/siyuan
|
||||||
|
# Timezone
|
||||||
|
TZ=Etc/UTC
|
||||||
12
siyuan/docker-compose.yaml
Normal file
12
siyuan/docker-compose.yaml
Normal file
@@ -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}
|
||||||
Reference in New Issue
Block a user