Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 829 Bytes

File metadata and controls

39 lines (27 loc) · 829 Bytes

Docker for Leanote

docker-compose build

sudo mkdir -p ./data/{conf,files,upload}
sudo cp -r conf ./data
docker-compose up -d

wkhtmltopdf

To enable wkhtmltopdf, update binary path in admin settings.

/usr/bin/wkhtmltopdf

First run

You need to migrate application (first run only). To do this, you need mongorestore.

docker exec -ti leanotedocker_server_1 sh

apk upgrade --update
apk add --update mongodb-tools
mongorestore -h db -d leanote --dir mongodb_backup/leanote_install_data
apk del --purge mongodb-tools

exit

Note that the imported database contains 2 user accounts by default

user1 username: admin, password: abc123 (administrator, used for backend management and control)  
user2 username: demo@leanote.com, password: demo@leanote.com (for demonstration purposes)