I’ve been trying to convert a monolithic app to a microservice architecture. The application requires the following:
The first 4, unfortunately, need to be run inside of a single container, as the application doesn’t currently have configuration settings to speak to an external redis.
But the Postgres service could (and should) be run externally to the primary application container. However, the problem I’m having is that bundle relies on having Postgres packages installed in its environment.
I’ve thought of using the --link parameter, but this doesn’t work due to the fact that bundle occurs while the application image is “building”.
Any thoughts on how to get around this? Or is the temporary solution (until their architecture allows otherwise) to just run Postgres inside of the application container…?