...

/

Override Configurations in Docker Compose

Override Configurations in Docker Compose

Learn to override configurations in the base docker-compose file.

As developers, we work in a variety of environments. Having multiple environments helps us customize the software that we build and allows us to adapt it to the environment in which it runs.

In this lesson, we use docker-compose files to customize services in multiple environments.

Override existing settings from docker-compose file

Suppose we have a local environment where we develop, a CI environment where our code is integrated, and a production environment where our services run. We may ...