Docker Tip #98: Nested Variable Interpolation with Docker Compose v2

Опубликовано: 21 Март 2026
на канале: Nick Janetakis
482
11

This can be handy to have a variable default to another variable's values.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/docker...
► https://github.com/nickjj/docker-flas...

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

► https://nickjanetakis.com/courses/

THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...

FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter:   / nickjanetakis  
► GitHub: https://github.com/nickjj

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:19 -- How nested variable interpolation looks
1:55 -- Confirming it still works
2:13 -- Change the PORT env variable to something else
3:00 -- Just a reminder, EXPOSE is mainly for documentation