Answer the question
In order to leave comments, you need to log in
How to deploy PHP7 Mongodb Apache nginx using Docker on ubuntu?
And most importantly, how to connect it all so that it works.
I heard a lot about the docker that he is so good and amazing and does everything himself. In practice, of course, everything is sad. In addition to mongodb, nothing worked on its own, but I already undertook to study it. Maybe I'm doing something wrong. Therefore, I ask you to tell me how to do it right?
I am sure that this question haunts many, it will be useful to them, and using these 4 solutions as an example, it will become clear to many how to use this miracle - docker.
Please write an example of how to create a dockerfile for each (PHP7 Mongodb Apache nginx)
And then how to configure and run these 4 containers so that they work together as expected?
PS: PHP7 + Mongodb driver
Answer the question
In order to leave comments, you need to log in
It is not necessary to create a dockerfile, everything has already been created in the hub and is launched by one * command - mongodb , php , nginx , as well as many custom builds are available there.
For linking, docker compose can help.
Look for some articles, there is no point in rewriting them here, I read the docs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question