4 ms·
I don't understand how you configure your host-specific servicc dependencies, e.g. connection strings. Ansible (Puppet, Chef) does variable interpolation / temp
by JTenerife 11y ago
I don't understand how you configure your host-specific servicc dependencies, e.g. connection strings. Ansible (Puppet, Chef) does variable interpolation / templating for this purpose.
- joslin01 11y agoI have configuration files for each environment, so `dev.config`, `staging.config`, etc...
- michaelt 11y agoDo you deploy the same docker image to each environment, and somehow retrieve the configuration files on startup? Or do you rebuild your images as you promote from dev to staging to prod?
- joslin01 11y agoYes same docker image, but with different environment variables passed in for dev / staging / prod.
- superuser2 11y agoThis is a hard problem, but outside the scope of Docker. There are numerous cluster orchestration/management systems springing up around the ecosystem. (We don't necessarily have on ready for prime-time yet, but a lot of very good work is taking place.)