Code Monkey home page Code Monkey logo

leanote's Introduction

Leanote v2.6

Leanote Docker

使用方法

方法一

将数据和配置文件保存在镜像内部

启动MongoDB

docker run -d --name mongodb -p 27017:27017 -v /data/mongodb/db:/data/db -e AUTH=no mongo

启动Leanote

docker run --name leanote -p 9000:80 -e MONGO_URL_IP="127.0.0.1" -d xiaobailong/leanote

方法二

将数据以及配置文件挂载到宿主机器,需要在app.conf文件中配置mongdb

启动MongoDB

docker run -d --name mongodb -p 27017:27017 -v /data/mongodb/db:/data/db -e AUTH=no mongo

启动Leanote

docker run --name leanote -p 9000:80 \
    -v /data/leanote/conf:/usr/local/leanote/conf \
    -v /data/leanote/mongodb_backup:/usr/local/leanote/mongodb_backup \
    -d xiaobailong/leanote

leanote's People

Contributors

xiaobailong avatar

Stargazers

 avatar  avatar

leanote's Issues

群晖Docker调用出错,错误如下:

`DEBUG 07:48:56 revel server.go:106: InitServerEngine: Found server engine and invoking section=server name=go
panic: no reachable servers

goroutine 1 [running]:
github.com/leanote/leanote/app/db.Init(0xc420353890, 0x21, 0x0, 0x0)
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/db/Mgo.go:104 +0x48c2
github.com/leanote/leanote/app.init.0.func28()
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/init.go:423 +0x49
github.com/leanote/leanote/vendor/github.com/revel/revel.runStartupHooks()
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/server.go:126 +0x7f
github.com/leanote/leanote/vendor/github.com/revel/revel.InitServer()
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/server.go:37 +0x39
github.com/leanote/leanote/vendor/github.com/revel/revel.Run(0x0)
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/vendor/github.com/revel/revel/server.go:69 +0xd4
main.main()
/Users/life/Documents/Go/package_base/src/github.com/leanote/leanote/app/tmp/main.go:2312 +0x223d5
执行命令如下#启动MongoDB
docker run -d --name mongodb -p 27017:27017 -v /volume1/docker/mongodb/db:/data/db -e AUTH=no mongo
#启动Leanote
docker run --name leanote -p 9000:80 -e MONGO_URL_IP="127.0.0.1" -d xiaobailong/leanote`
该路径存在,并且可写/volume1/docker/mongodb/db
27017端口已经打开
但是9000端口未打开,并且无其他进程占用。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.