How to access a web application which I have deployed in Docker?

First time using Docker, there is trouble, wanted to deploy RabbitMQ, did as in tutorial. Found IP address, specified port, enter in the browser seems to connect but no result. IPS found so docker inspect-f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' some-rabbit
Someone tell me how to get to the web version of rabbit? Do I need to pull some shenanigans with Docker machine and so on?
The result of docker ps attached screenshot5cface165efbd845222005.png
March 23rd 20 at 19:35
1 answer
March 23rd 20 at 19:37
Solution
You should be the rabbitmq:3-management. And you have just 3, I see. For your reference see "Plugin Management". I don't know why you were somewhere ipshnik to look because, as I understand it, you need only port (127.0.0.1 ipshnik you - and you need to enter in the browser by adding the port). In the same dock via the link he specified it you have to traverse out. I suggest you do not do so, and to create a docker-compose.yml file for the project where you describe the entire infrastructure - and run through it. It is easier and more convenient.
Ie where I will create a docker compose. yaml, there will instructions for all images (e.g. mysql, php, rabbit), and launch it all in one command then? And all I need is just to know the ports of these images, while the IP address is always 127.0.0.1, right?
And for example 127.0.0.1:29921 is a rabbit, and something else with the same UI but different port? - makenna_Wehner commented on March 23rd 20 at 19:40
@makenna_Wehner, exactly. You're in docker-compose.yml directly in the property under ports indicate the port on the outside and inside of the container.

Yes, one team will start. sudo docker-compose up-d or sudo docker-compose-f ./custom-docker-compose-name.yml up-d, if you have this configuration file is either in another place or another name for it. -D is as if in daemon mode. If you're inside the container it is necessary to refer to another container, its host is the name of the service. While the port indicates the internal (not the one you are using ports outside asked, roughly) - Torrance.Ankunding20 commented on March 23rd 20 at 19:43
But anyway, if you have decided on the prod Docker't want you to warn. Let me cast aside stones, but this is my personal opinion. He's not stable, I think. He can inadvertently put you in the network (I experienced this), he eats quite a lot of RAM. The price for the convenience, I think, is too high. - Torrance.Ankunding20 commented on March 23rd 20 at 19:46
@Torrance.Ankunding20, they were willing, thank you. but the question, as I did in the instructions that it runs, if not start the GUI interface? - makenna_Wehner commented on March 23rd 20 at 19:49
@makenna_Wehner, one of them (rabbitmq:3-management enabled), the plugin management, which provides you GUI, and rabbitmq:3 it is not. Rabbitmq itself - it's just broker messages, and GUI - it's just a lotion to it. He may no GUI to work properly - the interface is just needed for convenience. Someone needs it, and some don't - and therefore two versions: with and without management. - Torrance.Ankunding20 commented on March 23rd 20 at 19:52
@Torrance.Ankunding20realized. thank you very much for the answer - makenna_Wehner commented on March 23rd 20 at 19:55

Find more questions by tags Docker