Web Dev with Matt

How to set build arguments in Docker Compose's config file


Listen Later

You can specify build arguments in Dockerfiles to set variables required at build time. However, when you're using Docker Compose and one (or more) of the services in the configuration builds based on a Dockerfile, how do you specify build arguments for it? In this episode, I step through how to specify them in Compose configuration files.

Links from the episode

  • Specifying build arguments with Docker Compose
  • Dockerfile build arguments
  • Docker Compose up options

Want to grow your knowledge further?

Check out the books below, where you can grow your web development skills in a very focused, very hands-on way.

  • Docker Essentials
  • Mezzio Essentials

Hosted and produced by: Matthew Setter.

Website: https://matthewsetter.com
Follow me on: Twitter and LinkedIn.

If you like the podcast, and want to support it, how about buying me a coffee?

★ Support this podcast on Patreon ★
...more
View all episodesView all episodes
Download on the App Store

Web Dev with MattBy Matthew Setter