V
V
Vladimir2020-07-23 15:41:41
Docker
Vladimir, 2020-07-23 15:41:41

What container structure to make for the microservices shell?

There are 4 services in one in the repository in subfolders.
The services themselves run on a local node, but 3 of them require radish, and one requires Postgre SQL.
Now the root is this docker-compose.yml

version: '2'

services:
  redis:
    image: 'redis:latest'
    ports:
      - '6379:6379'

And I raise this container before starting any of the services.
Where and how is it better to put docker compose so that I can run it from a subfolder of a service that requires Postgre SQL, and from a subfolder of any service I can run a radish?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2020-07-24
@vabka

if all services are to be started together, then let docker-compose be at the root of the repository, otherwise let it be next to each service

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question