统一登录、工作区、待办、设置和管理页面的视觉语言,补充 Markdown 预览、皮肤切换及移动端体验。 Co-Authored-By: Codex <noreply@anthropic.com>
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: plainleaf
|
|
|
|
services:
|
|
plainleaf:
|
|
image: gitea.aichickenfarm.cn/wushenghua/plainleaf:${PLAINLEAF_IMAGE_TAG:-edge}
|
|
container_name: plainleaf
|
|
restart: unless-stopped
|
|
user: "${PLAINLEAF_UID:-1001}:${PLAINLEAF_GID:-1001}"
|
|
environment:
|
|
SB_HOSTNAME: 0.0.0.0
|
|
SB_PORT: 3000
|
|
# An empty /data starts the built-in account setup wizard.
|
|
SB_FOLDER: /data
|
|
SB_SHELL_BACKEND: "off"
|
|
# Personal NAS: keep explicitly remembered browser sessions for 30 days.
|
|
SB_REMEMBER_ME_HOURS: 720
|
|
ports:
|
|
- "${PLAINLEAF_PORT:-31230}:3000"
|
|
volumes:
|
|
- "${PLAINLEAF_SERVER_PATH:?Set PLAINLEAF_SERVER_PATH in the NAS deployment .env file}:/data"
|
|
# Existing Markdown stays in place and is selected as /notes in setup.
|
|
- "${PLAINLEAF_SPACE_PATH:?Set PLAINLEAF_SPACE_PATH in the NAS deployment .env file}:/notes"
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
cap_drop:
|
|
- ALL
|
|
init: true
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"curl --fail --silent --show-error http://127.0.0.1:3000/.instance >/dev/null",
|
|
]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 20s
|
|
retries: 5
|
|
networks:
|
|
- plainleaf
|
|
|
|
networks:
|
|
plainleaf:
|
|
name: plainleaf_network
|