Files
plainleaf/deploy/nas/compose.yaml
T
wushenghuaandCodex a9e653009a
CI / config (push) Canceled after 0s
CI / test-frontend (push) Canceled after 0s
CI / test-rust (push) Canceled after 0s
CI / test-e2e (push) Canceled after 0s
CI / test-e2e-release (push) Canceled after 0s
CI / build (push) Canceled after 0s
CI / release (push) Canceled after 0s
CI / docker (push) Canceled after 0s
CI / docker-website (push) Canceled after 0s
feat: 支持主动触发 NAS 安全更新
Co-Authored-By: Codex <noreply@anthropic.com>
2026-08-12 23:07:46 +08:00

38 lines
1.0 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"
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", "kill -0 1"]
interval: 30s
timeout: 5s
start_period: 20s
retries: 5
networks:
- plainleaf
networks:
plainleaf:
name: plainleaf_network