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

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
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.
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 ★
How to set build arguments in Docker Compose's config file
Broadcast by