A
A
akdes2017-05-25 13:28:26
Computer networks
akdes, 2017-05-25 13:28:26

How to link multiple docker-compose projects via http?

Good day to all.
There was a need to link 2 or more "containers/projects" (for example, an API Service and a separate AngularApp project) built in different docker-compose projects.
I managed to do this, but "handles":

docker network connect project_network_default container_name_from_other_project

but I would like to solve this through docker-compose.yml or in another way, but not manually through the console.
I tried to do it through "networks" but it did not work out yet, because if I understood correctly, this is to create an additional. networks rather than connections.
Any answer will be glad, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2017-05-25
@akdes

How to set up a container network with docker-compose?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question