Laverna is a note taking web application written in JavaScript. It's built to be an open source alternative to Evernote. This is a Docker compose configuration to setup your own laverna server.
This setup includes:
laverna:proxy
- supervisord
- nginx (reverse proxy)
laverna:web
- supervisord
- nginx (web server)
- laverna
NOTE: these commands needs to be run on the docker host
- Install dependencies
# apt-get install nginx git bc
# git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt- add the following lines to /etc/nginx/sites-available/default
location ~ /.well-known {
allow all;
}- restart nginx
# systemctl restart nginx- request the certificate
# cd /opt/letsencrypt
# ./letsencrypt-auto certonly -a webroot --webroot-path=/usr/share/nginx/html -d notes.example.com- edit the docker-compose.yml config
sed -i -e 's/notes.examples.com/your.site.com/' docker-compose.yml- generate strong DH group
# openssl dhparam -out /etc/ssl/certs/dhparam.pem 2048Customize the nginx configuration:
$ cd laverna
$ vim proxy/sites-enabled/proxyInstall docker-compose and start the containers:
$ docker-compose up -d