Personal code snippets of @tmasjc

Site powered by Hugo + Blogdown

Image by Mads Schmidt Rasmussen from unsplash.com

Minimal Bootstrap Theme by Zachary Betz

Application Configuration into Docker Container

Jun 8, 2018 #Docker

Send configuration to Dockerized Apps,

  1. Baking the configuration into the container itself via Dockerfile

  2. Setting the application configutation dynamically via ENV

  3. Setting the application dynamically via KV store on the network (Consul or etcd)

  4. Map the config files in directly via Docker volumes. For production, try configuration management tool like Ansible, Chef, Puppet.