Похожие чаты

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 ответов

5 просмотров

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.

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

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

А чем вам питонисты не угодили?😂
.
79
всем доброго времени суток! имею вопрос: как понять ТОЧНО, что на нексус производится атака или он перегружен? исходные данные: - Nexus OSS 3.67.1-01 на OrientDB - Total co...
Michael Kostelcev
11
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
or any website to buy prepaid card with xmr that's not trocador that's down?
Umbrella Party Partner
18
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Ещё такой вопрос. Мне необходимо хранить пароль пользователя локально. Для этого планирую использовать ini файл. Это для автозаполнения полей логин и пароль при авторизации. Е...
Евгений
19
Добрый день, LO Writer, проблема с нумерацией таблиц (вставка названия). У меня два стиля нумерованных списка, один для основного текста (вида 1.1.1) другой доя приложений (ви...
Виктор
6
My assets the Oceans at Binance, its displaying passive and no automatically convert, this situation will change?
Nationalizze
8
Xem delist ho rha hai agr naa bhechu toh kya hoga after 1 july?
ABHI
27
Ты просто гитлеровскую эстетику плохо понимаешь. Он же всё под Цезаря делал. А это как бы запрещённый приём в политике. Пиджаки они зачем все носят? Чтобы показать что они тип...
Ivan Kropotkin
4
Карта сайта