Docker Tip #87: Run Multiple Docker Compose Files with the -f Flag



We’ll cover using the -f flag along with the COMPOSE_FILE environment variable.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
—————————————————

COURSES
—————————————————
Courses I’ve created that focus on web dev and deployment topics.

THE TOOLS I USE / GEAR
—————————————————

FOLLOW ME ELSEWHERE
—————————————————
► Twitter:
► GitHub:

TIMESTAMPS
—————————————————
0:00 — Intro
0:21 — Taking a look at each Docker Compose YAML file
0:42 — Applying this to a mono repo multi-service use case
1:10 — Running our command with a few -f flags and visiting the echo server
1:43 — Using the COMPOSE_FILE env variable to pre-set which files to run
2:50 — Checking which order files will be loaded using the config command
3:28 — The reference notes for this video is on my blog

source

5 thoughts on “Docker Tip #87: Run Multiple Docker Compose Files with the -f Flag”
  1. Awesome Nick! my immediate question after watching the video is: how to link services split into multiple repos?
    i.e. the BE defined into a repository with its own docker-compose file and the same for the frontend.

Leave a Reply

Your email address will not be published.

Captcha loading...