OK guys I really hope that you were able to complete this challenge yourself.
And now you have into a setup with Wordpress Maya scale and BHP my.
But no let me demonstrate you how I will do that from beginning to end.
And let me start from a cleaning up of existing setup because now we have to two those running.
Here they are.
P.S. My scale and BHP my admin.
Let me stop them and afterwards remove Docker.
Stop.
3 4 Docker R M 3 4 and doctor stop.
4 3.
The second container Maya scale.
Doc R M for 3 and container was removed.
Wonderful.
Now I am all set.
And let me force the goal to be a scold and the create new folder here and folder name will be them
world press.
And here inside of this folder I'll read your file.
Same as they did in my school folder and it will be a Commands Look the extreme commands the extreme
and no let me go to this previous commands of text file and copy.
Those two last commands like so actually included.
Could this create custom bridge network but go to these commands to text file based cockpit commands
like so.
No let me hide this left brain and actually look at.
Now save this file and I'll just add a bit later I'll also add additional command that will start additional
container drill bit walk press container.
But first let me show you how we're able to pull specific images using specific text.
Let me actually go to Google Chrome thrust and here let me go to my Skrill contain them.
My Eskil here.
Click on the thrust link my Eskil
and you'll see all the viruses that you are able to download basically here in the troll section.
Here it is and you may notice that the latest tech is assigned to on 8 and basically this latest tech
may be assigned to different versions of specific image and usually it is assigned to latest stable
operation.
But in this challenge I have asked you to use specific commercials of Maya scale and WordPress and the
reason why I asked you to do so is that at the moment latest version of WordPress does not work correctly
initially with latest version of Maya scale because in latest the model of Maya skill enumeration 8
there was a change in password authentication and that there was actually a workaround for that but
I don't want to ask you to use those workarounds at the moment.
That's why I ask you to use this specific version of Maya scale and WordPress images and we will use
specific words on this one.
Five dollars 7 for Maya scale and five dot forum for wordpress.
Let me copy this Yarnell.
Open up your tap and the start of Maya scale.
I want to have a look at WordPress.
Image
and here if I scroll down you'll see that the latest tech is currently assigned to where it is.
I don't see actually let me find it out.
Latest here it is.
It is assigned to version 5.
Not for that I actually asked you to use because when you might see the scrolls.
This latest tech may be reassigned to newer version of WordPress.
That's why in order to make things work for sure.
I have asked you to use a version of firewood for or for wordpress container and the version 5 7 for
Maya scale and less no bull doors of origins from Docker Hub.
And if you want to pool specific you match using specific tech or what you need to do is to add the
column and after column specify that you want to pull in which with let's use Docker pool command and
here will be the name of the in which my Eskil next column and after column comes virus an attack for
this Pacific image.
I want to download from Docker Hub and VeriSign will be five dot seven.
Let's press enter.
Notice that the Maya scale latest the marathon is already in my local cache but this marathon filed
7 is absent.
That's why now we are downloading it from Docker Hub and noticed that some file system layers are already
present in local cache let's wait to beat great pool complete and now I have my Skrill column filed
on seven abortion on the least wealth where you find it Docker images and yes now I see two versions
of my skill image latest and five year old seven.
Now in the same way let's do both.
Press 5 but for Verisign and basically in my case this evolution is the same as latest and let's see
what will happen if I'll try to pull Verizon with Dec 5 but for what McLean terminal Docker Apple WordPress
column 5 for tender.
Blink and you'll see message.
Download new or image for wordpress five dot four.
And basically I don't see any fast laid out information here.
And that means that we will simply reuse VeriSign that is already present on this computer.
Let's have a look at Docker images and now I see two models of WordPress latest and operation five dot
from.
And again in my case I see that the image ideas are exactly the same for both images and size is also
the same because those images are the same.
Wonderful.
Now I'm able to use those images and now it's a good time to move back to our configuration here and
create three different containers in New WordPress network.
Let's.
A Justice comment Docker network create here will be a wordpress network.
It will be your custom network.
Next day let's use this network name here in this container and then discontinue and also lists below.
Actually let me create WordPress container here.
Start Wordpress and here on the next line we'll be at Docker on command Docker run.
I'll use also separation using backslash and the here.
Let's first add the network to the same network for all three containers WordPress.
Next I need to use Port mapping and expose this container using external port and I'll use Port 88 for
work press and 88 to 1 for BHP at my admin actually.
Let me adjust this brought in BHP my admin immediately.
And here will be port mapping DSP 80 80 and internal port for wordpress will be 80.
It is default.
What passport.
Great.
On next line actually I'll run WordPress.
Also in background there's the option.
And yeah I will.
If I name of the image I will use.
Please note that I will use custom WordPress image with Pacific Tech fire.
But from here we will be able to image what press column 5 but for.
Great.
That's all what I need to do for wordpress contain.
But basically let me also add a custom name for wordpress container and BHP my admin container for it
by declarative and I'll add them here.
Name and here we'll be WordPress.
Max let's also look at the name here for BHP my admin name here will be BHP my admin.
Like so and drink up that there was no name for my skill container here on this set.
Also dealt with this environment variable for my skill container.
I have told you that now for the setup we need to add three additional environment variables for my
skill container.
Let's add them here below this one and if you want to create the multiple environment variables unit
simply use this you flag multiple times does this simple.
This issue here will be my skill under score database and let's set it equal to WordPress backslash.
Next comes one more variable my escrow user name equals sign.
WordPress as well backslash and finally let's add my scribble underscore password variable equals sign
and let's say also word press.
Like so don't forget to add backslash.
And here we have four different environmental variables and those variables will be used by WordPress
to connect to my skill container.
Alright let me clarify all those commands.
So here throws to we create custom WordPress network.
It will be breached network with custom subnet next the comms command that will launch my skills cetera
with 4 environment variables and this center will be started in custom WordPress network.
Its name will be Maya Skrill and we will be able to reach this server by this custom name dog our host
will result this custom name to IP address that will be assigned to this container and we will run.
This my skill set of writing background.
Basically sorry I have forgotten to add here.
Custom tech 5 silent.
All right.
Here is a command for my skills Sara.
It seems now with this fully correct next command we'll start WordPress container dock around network
will be WordPress custom.
Same as for old Romanian containers.
Name will be WordPress.
Basically we don't need to have this name here but there is a good practice to add the custom name to
every container you create the eyes or if you run container using Docker on comment or when you run
containers using Docker compose.
So next we expose WordPress container it use an external port 88 internal port is 80 and we will lounge
in the background using the option.
This container and image use this one Wordpress and tech is 5 dot four.
And finally we will Iran and BHP my admin in the same network WordPress.
Name is BHP my admin again does not mandatory and we expose internal port aided to external port 80
81 and we also set the environment 20 move be my host that will point to my Skrill name.
It is actually a DNS name of my skill container.
And finally we will start this container using BHP my Edwards left BHP my Edmond image in background.
There's.
I haven't asked you to use specific tech for this image.
That's why we will use latest milestone.
All right now we are ready to start and test this configuration but let's make a short break.
Save this file and do that after the small piles.
See you next.
My.