2

hey we have a GitLab stage and inside that we need to start an environment with several containers we pull from a local registry.

We use compose and a docker in docker solution for that at the moment.

The problem is, that the compose.yml now hold all the configuration for each service.

So if we change it for one service, we need to update it in each docker-compose.yml in each project.

What is the standard approach for such a setting?

Thanks

1 Answer 1

1

So if we change it for one service, we need to update it in each docker-compose.yml in each project.

That's sounds like duplicate code and there are many ways to avoid that. But without more detailed information about how your setup looks like it's difficult to help.

Within a pipeline you can access other projects and their source code. Maybe Git Submodules is an option. Or you might be interested in the include keyword of GitLab CI.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.