diff --git a/docker.md b/docker.md index 54cc2f3..e08cb40 100644 --- a/docker.md +++ b/docker.md @@ -13,14 +13,14 @@ This will create a directory called phanbook. If you wish, you can rename it to ## Build the project -To build an image from a source repository, create a description file called Dockerfile at the root of your repository. This file will describe the steps to assemble the image. +To build an image from a source repository. Because phanbook use a lot of images from Phalcon Compose so that you can take a look [phalcon-compose](https://github.com/phalcon/phalcon-compose) -Then call docker build with the path of your source repository as the argument (for example .). But with something config the above we make it to scripts file run.sh(Linux/Unix) and run.bat(Window), so you just to running following the command below: +Then call docker build with the path of your source repository as the argument. But with something config the above we make it to scripts file run.sh(Linux/Unix) and run.bat(Window), so you just to running following the command below: ``` -cd phanbook && chmod +x run.sh && ./run.sh +cd phanbook && chmod +x run.sh && ./run.sh build ``` -After that waiting a few minute to pull some image docker and it will create some conatiner. Finaly you need install vendor and database just with command below: +After that waiting a few minute to pull some image docker and it will create some container. Finaly you need install vendor and database just with command below: ``` ./run.sh composer @@ -30,7 +30,7 @@ After that waiting a few minute to pull some image docker and it will create som Which defauts password mysql is ```secret``` if you want to change password fo mysql just to open ```opsfile/docker/.env``` file then edit the password you want to used it -## Get your Droplet’s IP address +## Get your IP address You can run the following command to reveal your server’s IP address. @@ -40,7 +40,4 @@ ifconfig eth0 | grep inet | awk '{ print $2 }' //45.55.32.209 Finish up by visiting your app page (make sure you replace the example ip address with your correct one): http://45.55.32.209. It should look similar to this: -![](/img/docker-demo.png) - - -If you get something wrong username and password. Just to open ```phanbook/.env``` file and edit it +If you are get something wrong username or password. Just to open ```phanbook/.env``` file and editing it.