It's actually very easy to share a realm configuration.
In my team, we docker-compose-up KC and the realm gets configured at boot time, by passing the path to a previously exported configuration, which we store in got.
The configuration holds realm data and users.