/ns-docker

Nightscout server, MongoDB database, nginx and automated SSL certificate from Let's Encrypt in one docker-compose.

Primary LanguageShellMIT LicenseMIT

Nightscout server

Docker-compose configuration for setting up the Nightscout server along with MongoDB, Nginx reverse proxy and Let's Encrypt SSL certificate.

Installation

  1. Install docker-compose.

  2. Clone this repository: git clone https://github.com/ireneusz-ptak/ns-docker.git .

  3. Change the configuration filename: cp .env.template .env

  4. Set domain name, API secret and/or other setting in .env config file

  5. Run the init script: ./install-ns.sh

  6. Run the server: docker-compose up -d

License

All code in this repository is licensed under the terms of the MIT License. For further information please refer to the LICENSE file.

Certificate installation thanks to https://github.com/wmnnd/nginx-certbot