D
D
Dmitry2016-08-17 19:10:31
Docker
Dmitry, 2016-08-17 19:10:31

How to separate running docker-compose on dev and prod servers?

Hello All!
There are two Dev and Prod servers, respectively, development is underway on one - changes for clients are rolled out on the second. The entire deployment process is based on Docker, the configuration is the same for both servers and developers, everything is assembled through docker-compose. The question is - is it possible somehow without changing and without sharing the configs to force the docker on the Prod server not to build, say, php with xdebug. and for jenkins, use the config for Prod, not Dev, depending on what you need. I'm not strong in Docker - I just understand and can't figure out how to do it and whether it's possible at all. At the moment, I'm only thinking about splitting branches in Bitbucket for docker so that everyone has their own, but I don't like this solution. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2016-08-17
@Demi44

In my opinion, this situation is already described in the documentation: https://docs.docker.com/compose/extends/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question