Files
mengyanote/mengyanote-backend/docker-compose.yml
2025-12-19 15:51:26 +08:00

27 lines
572 B
YAML

version: '3.8'
services:
mengyanote-backend:
build: .
container_name: mengyanote-backend
restart: unless-stopped
ports:
- "2424:8000"
volumes:
# 持久化 mengyanote 数据目录
- /shumengya/docker/mengyanote/data:/app/mengyanote
environment:
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/tree"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- mengyanote-network
networks:
mengyanote-network:
driver: bridge