Menu

Docker from Source with docker-compose

Installation

This installation method is recommend for development in a docker environment.

  • git clone https://github.com/fr0tt/benotes
  • cp .env.docker.example .env
  • add to your .env file INSTALL_NODE=true
  • docker-compose build

    build docker container

  • docker-compose up -d

    start docker container

  • docker-compose exec --user application app sh

    access the app service

  • sh docker/install.sh

    do some necessary work like database migration and admin account creation

  • if you wish to use it on a production server change in your .env file APP_ENV from local to production
  • (based on your setup you might want to configure a reverse proxy as well)

Upgrade

  • git pull
  • docker-compose exec app sh
  • sh docker/update.sh

    Type yes if asked