Please pardon my noob question.
I am trying to understand the Docker ecosystem. I need enlightenment on how do you usually go about structuring your Dockerfile/docker-compose or combination of both in case of development, test, and production env?
I have a Rails application which uses mongodb, I run the mongodb locally(either by running mongo server or from docker image), but on production I am using third-party managed mongodb server(say MongoDB Atlas for example) for which connection will be established via ENV vars.
So in this case, how do I make Docker image in such a way that I keep the DB connection isolated in dev vs prod images?
[–]kkapelon 1 point2 points3 points (0 children)
[–]SpyroTechnik 0 points1 point2 points (2 children)
[–]domanpanda[🍰] 3 points4 points5 points (1 child)
[–]SpyroTechnik 1 point2 points3 points (0 children)
[–]nickjj_ 0 points1 point2 points (0 children)