Answer the question
In order to leave comments, you need to log in
Docker image for building microservices from different repositories?
Good afternoon!
The problem is this. There is a legacy architecture that includes 7 different services, each of which is in its own repository on Bitbucket and does not include Docker. It is necessary to build an image that will allow you to run certain versions (depending on the branch and state in the git, including local changes) of each individual module.
What decision did I come to? There is something like this file structure:
| etc #Конфиги для загрузки nginx, mysql, redis, fpm и т.п.
| services
| - service1
| - - src
| - - Dockerfile
| docker-compose.yml
Answer the question
In order to leave comments, you need to log in
For the dev environment, you can make a master repository with docker-compose.yml, add turnips with services to it via git submodules . Usually they do this if the services are in different turnips, like yours. You can also consider the option with a mono-turnip, each approach has its pros and cons.
For production, if it is, for example, swarm or kubernetes, you will need your own docker registry from which images of container services will be taken.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question