We have just successfully together with you, solve the challenge where we have created three different
containers in separate custom network and those containers were WordPress, MySQL and phpMyAdmin.
And our goal was to achieve communication with MySQL server using name of the container, and that was
successfully achieved.
And here are commands that we have used for start of MySQL server.
Here is this command.
We have used some environment variables and we have used the custom MySQL tag and also we have used
the custom version for WordPress and we have used here port mapping and also specified the custom network
name and the custom name for this container.
Also same, we have performed for phpMyAdmin, also for this container we have specified the custom
environment variable that points to location of the MySQL server.
And finally, we have tested all of that and I was able hope you were able to to create WordPress site
and log in into administrative dashboard and to open a website like so.
And in my case I see this Hello World web page and I see title that I have specified in initial configuration
dialog at WordPress.
Welcome to Bogdan's Wonderful website.
Great.
That's a summary for the last challenge, but now important notice recap that we have not specified
here any volume mapping settings and that means that as soon as we will stop and remove those containers
that are currently running here, they are all data in MySQL database in WordPress will be removed as
well.
And now if you want, here is a additional challenge for you.
You could adjust the setup for those containers and add the persistent volumes for MySQL container and
WordPress container.
But again, that's up to you if you want to do that.
But I will destroy those containers at the moment and move on.
Let me do that quickly.
I'll go to terminal and stop all those containers.
Docker Stop WordPress.
Docker.
Stop MySQL.
And Docker.
Stop phpMyAdmin.
And now let me remove all stopped containers.
Docker Container.
Prune.
Yes.
All right.
Now I have cleaned, set up and I'm ready to proceed.
And next, let's download Elasticsearch Image and I'll demonstrate you how we're able to communicate
with Elasticsearch.
I'll explain you.
What is that and how you able to create new indexes and search in new indexes.
I'll see you next.
Bye bye.