Nightscout for Containers

Run Nightscout in containers using Docker Swarm or Compose

Makes use of Caddy webserver for automatic registration of TLS certificates with Lets Encrypt.

The following images are used:

Setup

  1. Copy vars.sample to vars and set the required variables.

  2. Add any other nightscout variables as needed. https://github.com/nightscout/cgm-remote-monitor#environment

  3. Start nightscout with docker swarm or compose:

    • Compose:

      docker-compose up

    • Swarm:

      docker stack deploy -c docker-compose.yml nightscout

  4. When ready for production use make sure to:

    • Set the DOMAIN variable in vars
    • Comment out the acme_ca line in Caddyfile