Docker Community Forums

Share and learn in the Docker community.

First exercise in Docker - just beginning to learn


(Elihana) #1

Hi,
I’m really new and fresh in Docker…
Because I got a task (drill) to do.
Just today I started reading is the first time about DOCKER.
I will be happy if you help me do the exercise I got, I usually understand things from a reading the code and commands quickly.
Create docker Nginx as gateway to docker apache+php5 and use docker DB
(description below):

The Nginx container:
-Must have external folder for the site-enable configuration files
(create default and redirect to apache+php container)
-Must have external folder for logs
-Must have external folder for content

The Apache+php5:
-Must have external folder for php content
–Create phpinfo page
–Create php which read the content from the table below and print as a table
-Must have external folder for logs
-Must have external folder for the site-enable configuration files

The DB (mySql or PostgreSql):
-Must have external folder for logs
-Must have external folder for data
-Create a simple table with Name and Desc


(Iiptyf) #2

Sorry, this is quite some work to do imho. It’s a bit much too ask. Start with smaller goals and try to accomplish only parts of it and then move forward.


(Elihana) #3

Hi,
Thanks but I was able to do this by myself already… :smile:
Because I just start to learn Docker I assume that all of this can be done by code…
Now, that I know what is docker I can understand that my question is very stupid and not relevant at all :sweat_smile:


(Idogold) #4

Hi,
do you have a Docker files for it ?
It would be greatly appreciated