S
S
syndarva2021-03-09 13:17:40
GitHub
syndarva, 2021-03-09 13:17:40

What is the best file structure to use for a multi-container project?

Good afternoon. There is a project consisting of 4 main modules:

  • API
  • Main client
  • admin client
  • service in python


And additional:
  • Nginx
  • PostgreSQL
  • Administrator
  • memcached


I would like to move the main modules, docker-compose and nginx configuration files to separate GitHub repositories. What is the best way to organize the file structure for this task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0nkery, 2021-03-09
@0nkery

As an option:

deploy/
  - docker-compose.yml
  - nginx/
     - sites-enabled
     - ....
  - psql
  - adminer
  - memcached
  - api (submodule)
  - client (submodule -- если у него есть, что деплоить, разумеется)
  - admin-client (^)
  - python-service (submodule)

docker-compose refers to internal Dockerfiles from folders and projects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question