Configuration
ViEWS 3 services require configuration in order to run. There are a lot of settings, including sensitive settings that allow services to connect to databases, and so on.
To simplify configuration and make configuration changes transparent and versionable, we keep configuration centralized in a private git repository called prio-data/views3_config.
This repo contains a simple usage guide that shows you how to "install" the
contained config files into a views3 repository folder. The gist of it is that
the repository contains two files, dotenv
(installed as .env) and auth.env
that need to be present in the same folder as the views3 docker-compose.yaml
file in order for the system to work correctly.
Once "installed", configuration files can be changed by simply editing the files in the views3 repository folder. These changes are reflected on the files in the views3_config folder, as the files are linked during the installation process.
Any permanent changes should be added to the git repository and committed, preferrably in a feature branch.
Updating your configuration files is similarly simple: You just git pull
inside your views3_config folder to fetch the latest version, which updates the
files in the views3 repository folder as well.