Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do you manage the variation between local and cloud dependencies within Docker?

I have a Docker image with an application server running in it.

When I’m running in a development environment, I want to run a database server within the same Docker image.

However, in production, I want to use my cloud provider’s database service to host my database server.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What is the best (preferably officially supported) way to enable this distinction?

>Solution :

You Don’t

You don’t run the DB in the same container. You run it in a separate container next to your application container (Probably with docker-compose, but not required)

You run the same version as the cloud provider (or as close as you can get because they will no doubt configure it specifically for their env)

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading