This docker compose
project removes all old volumes, starts the services
against empty databases to create the schemes with the project's initialization
logic instead.
The main use-case is rebuilding the /docker-entrypoint-initdb.d/01-restore-fhir-database.sql
file as the FHIR service can change over time.
In other words, the main target audience for build-and-dump tooling is the maintainers of this KT2 Docker Compose repository and configuration.
Running this scrip removes all volumes
Have a look at the build_and_dump.sh for the stepts that are executed
In order to run the script execute the following steps:
- Make sure you
cd
into thebuild_and_dump
folder - Make sure it's okay that all current data is removed
- Execute the script
./build_and_dump.sh
- Wait until the sh script is done and verify that the
/docker-entrypoint-initdb.d/01-restore-fhir-database.sql
is updated - After this, you can simply run
docker compose
from the root of the project, and it will use the new data - When all looks good after tests, this can be committed
- Keycloak is fully restored from the config file
- Domain admin has a very low risk of changing over time and is simply restored in a static backup file