mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-07 02:48:02 +08:00
- docker-compose.yml 移除硬编码 NEXTAUTH_SECRET,留空时由入口脚本生成强随机密钥,并补充日志轮转 - HEALTHCHECK 按 PORT 环境变量探测,健康时显式退出,避免探活超时 - docker-entrypoint.sh 优先读取构建注入的 APP_VERSION,为空时回退 package.json Refs: https://github.com/margrop/wrong-notebook/issues/161
22 lines
611 B
YAML
22 lines
611 B
YAML
services:
|
|
wrong-notebook:
|
|
image: ghcr.io/margrop/wrong-notebook:latest
|
|
container_name: wrong-notebook
|
|
restart: always
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
# NEXTAUTH_URL 根据实际情况设置;NEXTAUTH_SECRET 留空时容器首次启动自动生成并保存到数据卷
|
|
#- NEXTAUTH_URL=http://your_domain_name:3000
|
|
#- NEXTAUTH_SECRET=可选,留空自动生成
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
volumes:
|
|
# Persist the SQLite database
|
|
- ./data:/app/data
|
|
- ./config:/app/config
|
|
|