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

15/03/2024 4 min Temporada 2 Episodio 11
How to set build arguments in Docker Compose's config file

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

Episode Synopsis


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 episodeSpecifying build arguments with Docker ComposeDockerfile build argumentsDocker Compose up optionsWant 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 EssentialsMezzio EssentialsHosted and produced by: Matthew Setter.Website: https://matthewsetter.comFollow 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 episodes of the podcast Web Dev with Matt