A
A
AE422020-11-12 12:10:49
Software design
AE42, 2020-11-12 12:10:49

Organization of the correct architecture?

Good day!

I have a project, it consists of frontend, backend, webhook, hasura, db
frontend, backend, webhook - in different repositories
I want to connect CI \ CD gitlab The

question is where is it better to build db, hasura, nginx
Can I put them in docker-compose and build them in the backend repository, or you can create a separate repository with docker-compose where nginx, hasura, db will be built. Are

there any other options and how to do it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Wells, 2020-11-13
@Alex_Wells

IMHO, the best option is to divide by applications. One application - one repository. Inside, you can divide folders into frontend, backend and docker without any problems, and any normal IDE will perfectly allow you to specify the modules by folder.
I don't see a real need for different repositories. And even if it suddenly was - there are git modules, in the end, the structure will still be as described above.

D
Dasha Tsiklauri, 2020-11-13
@dasha_programmist

I see this practice:
- infra-repo : initialization scripts, docker-compose, settings for nginx, elk and so on
- repo per project : each project has its own repo (backend, frontend, microservice), they already contain Dockerfile, . ci.yml pipeline setup for this project, description of steps and so on

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question