Похожие чаты

Hey guys What's the purpose of using two or more docker-compose

files with the docker-compose command? Like so:

$ docker-compose -f docker-compose.yml -f docker-compose-prod.yml up --build

5 ответов

16 просмотров

having different configurations where you dont want to repeat yourself too often

docker will merge the two files. Useful for env specific configs that are separate from a common template

It's useful where you have almost similar architecture in the dev and prod env.. And you want to just maintain a single file for the common config. And the stuff which is different can be added with supporting files like docker-compose-prod.yml

Peyman-EhsanDoost Автор вопроса
Ayush Singh
It's useful where you have almost similar architec...

So it's a composition model? Like if we have the same service name in both files, at the end we'll have 1 service with values of both files under it?

Peyman EhsanDoost
So it's a composition model? Like if we have the s...

Nope.. docker-compose will give out error while parsing the file.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта