Skip to content
How to set build arguments in Docker Compose's config file episode artwork

Mar 15, 2024 4 min

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

from Web Dev with Matt Hosted by Matthew Setter

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 ★

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

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

0:00 4:40

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Web Dev with Matt?

This episode is 4 minutes long.

When was this Web Dev with Matt episode published?

This episode was published on March 15, 2024.

Can I download this Web Dev with Matt episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.