Answer the question
In order to leave comments, you need to log in
How to set up a network of Docker containers?
The bottom line is that there is web project #1 and there is web project #2 (on laravel if it matters).
Project #1 manages project #2 via API.
It is necessary:
1) Push project No. 2 into the image (with all the necessary nginx, php, etc.) - I did this docker-compose collected everything from different images, forwarded everything, connected everything
2) From project No. 1, run containers with project No. 2 from the image - ?
3) From project #1, manage projects #2 in different containers - ?
4) Correctly organize a network of containers (so far in the area of \u200b\u200bone machine) The
question is how to organize this whole process correctly? Make all containers with their own ip, manage them, where to look, what to read, what to study?
Understanding Docker at the level of building an image, compose no more.
Answer the question
In order to leave comments, you need to log in
No need to try to create other containers from the container! (Yes, it's technically possible, but not easy, and it's better for beginners not to know about this possibility at all to avoid unnecessary temptations) They must be created directly from the host. The easiest way to orchestrate is docker-compose. Descriptions of all containers with links between them are written in one file, then all this is launched with one command. The official documentation and the Internet are full of information and examples.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question