Skip to content

vvicaretti/docker-laverna

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laverna docker container

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.

Setup

This setup includes:

laverna:proxy

  • supervisord
  • nginx (reverse proxy)

laverna:web

  • supervisord
  • nginx (web server)
  • laverna

Generate the certificates with letsencrypt

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 2048

Use the containers

Customize the nginx configuration:

$ cd laverna
$ vim proxy/sites-enabled/proxy

Install docker-compose and start the containers:

$ docker-compose up -d

About

Docker container for laverna note taking application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published