Files
wrong-notebook/docker-compose.yml
margrop 016ecf4db3 fix: 修复 Docker 默认弱密钥、健康检查端口与版本检测
- docker-compose.yml 移除硬编码 NEXTAUTH_SECRET,留空时由入口脚本生成强随机密钥,并补充日志轮转
- HEALTHCHECK 按 PORT 环境变量探测,健康时显式退出,避免探活超时
- docker-entrypoint.sh 优先读取构建注入的 APP_VERSION,为空时回退 package.json
Refs: https://github.com/margrop/wrong-notebook/issues/161
2026-12-04 01:29:21 +08:00

22 lines
611 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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