Leanote Docker Image
All data is in /leanote/data volume. We can mount local data folder for this volume. More details from this wiki
1. Create data folder
mkdir -p ./leanote/data/{files,mongodb_backup,public/upload}
docker-compose.yml
file
2. Create the content:
version: '2'
services:
db:
restart: always
container_name: mongodb_server
image: mongo:3.2.3
volumes:
- ./leanote_data:/data/db
server:
image: mariusv/leanote
environment:
- SITE_URL="http://localhost:9000"
depends_on:
- db
restart: always
ports:
- 9000:9000
links:
- db:mongodb
container_name: leanote_server
volumes:
- ./leanote/data:/leanote/data
2. Create the Stack which will include a MongoDB container and a Leanote one
docker-compose up -d
3. Initialize database
docker exec -it leanote_server mongorestore -h db -d leanote --dir /leanote/leanote_install_data
4. Profit :-)
Once all the above steps are completed you can login using http://SERVER_IP:9000/login
Credentials:
- user: admin
- password: abc123 (please CHANGE it)