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:
- https://hub.docker.com/r/nightscout/cgm-remote-monitor
- https://hub.docker.com/r/bitnami/mongodb
- https://hub.docker.com/_/caddy
-
Copy vars.sample to vars and set the required variables.
-
Add any other nightscout variables as needed. https://github.com/nightscout/cgm-remote-monitor#environment
-
Start nightscout with docker swarm or compose:
-
Compose:
docker-compose up
-
Swarm:
docker stack deploy -c docker-compose.yml nightscout
-
-
When ready for production use make sure to:
- Set the DOMAIN variable in vars
- Comment out the acme_ca line in Caddyfile