Sign inSign up

zengchw/leanote

By zengchw

Updated over 8 years ago

See axboy/leanote

Image
2

2.0K

zengchw/leanote repository overview

WARNING: This repository is deprecated.

See https://hub.docker.com/r/axboy/leanote/


本镜像基于mongo:3.2构建,实际就是添加一个run.sh脚本,初始化蚂蚁笔记的所需的数据库。

运行

为方便迁移,建议映射mongo db的数据卷和leanote的conf文件夹。容器内的mongodb为免密码的,若需密码自行修改镜像。以下是参考运行代码。

docker run -d --name leanote \
    -v `pwd`/db:/data/db \
    -v `pwd`/conf/:/data/leanote/conf \
    -p 9000:9000 \
    zengchw/leanote

修改时区

进入容器内执行下面脚本,改为北京时间,其它时区酌情修改。

rm -f /etc/localtime 
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
rm -f /etc/timezone
echo "Asia/Shanghai" >> /etc/timezone

常见问题

  • 2.6版启动后不能访问

2.6版默认绑定localhost, 不能通过ip访问Leanote, 请修改 app.conf

http.addr=0.0.0.0 # listen on all ip addresses

重启Leanote

其它

初始用户

user1 username: admin, password: abc123 (管理员, 只有该用户才有权管理后台, 请及时修改密码)
user2 username: [email protected], password: [email protected] (仅供体验使用)

Tag summary

Content type

Image

Digest

Size

119.5 MB

Last updated

over 8 years ago

docker pull zengchw/leanote