Coder Social home page Coder Social logo

ns-setup's Introduction

ns-setup

Simplifying Nightscout setup routine

These scripts are used to make private Nightscout setup as smooth as you could only imagine. It uses docker compose with nightscout itself, traefik for ssl termination and mongodb for your data. The docker-compose.yml is based on original Nightscout's one but modified a bit to make use of parameters entered during install scipt's execution.

Prerequisites

  1. First of all you need your VPS - virtal machine.
  2. You need a domain name registered and attached to your VPS's public IP.
  3. Also you need a ssh access to your VPS.

Process

Once all the mentioned preparations done you do:

  1. ssh to your VPS
  2. write bash <(wget -qO- https://raw.githubusercontent.com/justmara/ns-setup/main/ns-setup.sh) in console, press enter and follow installation instructions.
  3. enjoy your private nightscout installation

Migrating old data

This section is optional, for advanced users that want to transfer their data from old Nightscout installation. There are at least two methods to do that:

  1. Use pre-made ssh script, like this one
  2. Use direct mongodump/mongorestore routine

Mongodump

Since we've set up running MongoDB docker image we can use it to pull all the data from remote mongo instance

  1. docker exec -it mongo /usr/bin/mongodump --uri="<here goes your MongoDb Atlas connection string>" this will dump whole db to the folder dump/<dbname> in your mongo container
  2. docker exec -it mongo /usr/bin/mongorestore --db ns dump/<dbname> this will restore all the data from dump/<dbname> folder to the ns database

ns-setup's People

Contributors

bjornoleh avatar justmara avatar

Forkers

mountrcg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.