Some background info on why I would like to do this:
We want to make the deployment to our servers cleaner by deploying to a container and making an image of the container so it can be spun up where necessary. The problem is that each server has its own database that we need to use and also migrate as we do these deployments.
So, is there any way I could access a postgresql database on the host from a container?
If this is not good practice, please let me know how databases are usually handled in a production environment.
I did try to find articles and documentation about this, but couldn’t find anything answering my question.