M
M
Mikhail Moskalev2018-04-22 20:38:38
*nix-like systems
Mikhail Moskalev, 2018-04-22 20:38:38

How to organize different environments for docker?

Greetings!
There was a need to organize a normal project deployment (php + nodejs). I wrapped everything in docker and run with docker-compose, but I can't figure out how to change the config depending on the environment (prod/stage/dev)
Are there any best practices for organizing docker environments?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-04-22
@Mr_Franke

Docker Compose has support for multi Compose files
https://docs.docker.com/compose/extends/#example-u...
Configure the necessary commands in Storm in Run and everything will be convenient
Well, already configure the deployment in your deployment system

K
Kirill Mokevnin, 2018-04-22
@toxicmt

Make different dockerfiles and use the docker-compose feature - 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