My docker-compose config for multiple instances of Nightscout a Prod and a Bleeding Edge / Dev instance which gets the same data from a single Nightscout compatible Rig.
- Do a git clone of this repo
- Start the container stack 'docker compose up -d' this should create a default Nginx/SWAG config for you under the ./nginx_config
- Stop the container stack 'docker compose down'
- Copy over the nginx_config-example files maintaining the same folder structure and filenames into ./nginx_config
- Take a copy of the .env-example and update with your environment specific config
- Start up the containers 'docker compose up -d'
- Read https://docs.linuxserver.io/general/swag/ for more info about what the Nginx/SWAG container can do, e.g. how to setup automated Letsencrypt certs
- Profit!