Docker Environment Configs, Variables, and Entrypoints

DevOps and Docker Talk

Episode | Podcast

Date: Wed, 06 Mar 2019 10:00:00 -0500

<p>I go through the multiple ways to get your environment variables into a container, and what shouldn't go into your ENV's.</p><p> ★<strong>Show Links★</strong></p><ul> <li><a href="https://12factor.net/config">Twelve Factor Apps: The Config</a></li> <li><a href="https://github.com/BretFisher/php-docker-good-defaults/blob/master/Dockerfile">Sample PHP Dockerfile with lots of ENV</a></li> <li><a href="https://github.com/BretFisher/php-docker-good-defaults/blob/master/docker-compose.yml">Those Same ENV's overwritten with docker-compose.yml</a></li> <li><a href="https://github.com/BretFisher/php-docker-good-defaults/blob/master/docker-php-entrypoint">Simple example of using Docker ENV's to create custom app config</a></li> <li><a href="https://github.com/docker-library/mysql/blob/a7a737f1eb44db467c85c8229df9d886dd63460e/8.0/docker-entrypoint.sh#L21-L41">Docker MySQL Official Image Entrypoint Script that creates ENV's from files (for secrets)</a></li> <li><a href="https://www.oreilly.com/ideas/3-docker-compose-features-for-improving-team-development-workflow">3 Docker Compose Features for Improving Team Development Workflow</a></li> </ul> <br /><p><strong>Support this show and get exclusive benefits on </strong><a href="https://patreon.com/BretFisher"><strong>Patreon</strong></a><strong>, </strong><a href="https://www.youtube.com/@BretFisher"><strong>YouTube</strong></a><strong>, or </strong><a href="https://www.bretfisher.com/"><strong>bretfisher.com</strong></a><strong>!</strong></p>