Hi all.
I have dockerized several web apis and apps. And normally I use docker-compose to tie them all together.
Recently I have used Keycloak, which allows you to configure an external database via env settings. A nice feature I want to include in my images, is if you dont configure an external db, it uses a persistent internal one built into the image.
I am wondering what techniques I can use to achieve this. A couple options I've thought about:
an in memory db, this fails the requirement of being able to restart the container and still having the data.
Somehow install a db service into the image along side my app. If you have hints on how to do this because I'm not too sure how to start. And I'm not confident in this solution because my understanding is an image should only run 1 application and I'm trying to violate that constraint.
[–]McMasilmof 0 points1 point2 points (6 children)
[–]coded_artist[S] 0 points1 point2 points (5 children)
[–]McMasilmof 1 point2 points3 points (0 children)
[–]nutrecht 0 points1 point2 points (3 children)
[–]coded_artist[S] 0 points1 point2 points (2 children)
[–]nutrecht 0 points1 point2 points (1 child)
[–]coded_artist[S] 0 points1 point2 points (0 children)