All data is in /leanote/data volume. We can mount local data folder for this volume. More details from this wiki
mkdir -p ./leanote/data/{files,mongodb_backup,public/upload}
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="https://localhost:9000"
depends_on:
- db
restart: always
ports:
- 9000:9000
links:
- db:mongodb
container_name: leanote_server
volumes:
- ./leanote/data:/leanote/data
docker-compose up -d
docker exec -it leanote_server mongorestore -h db -d leanote --dir /leanote/leanote_install_data
Once all the above steps are completed you can login using https://SERVER_IP:9000/login
Credentials:
- user: admin
- password: abc123 (please CHANGE it)