The patience when you are learning new technologies.

The patience when you are learning new technologies.
Photo by JESHOOTS.COM / Unsplash

In this days when I started my blog it arrived me the bad news that the Ghost's funcionalities will be free for limited time. They gave me a grace time but, afther that my blog and all its content will be wiped.

To resolve this I set out myself to use the Open Source version and this is the short explained way I could acheive it.

AWS's EC2 Instance

I took several classes inline about how to use AWS in the Platzi Platform in this link you colud take the course, with the knowledgments adquired I could create an AWS's EC2 instance.

Install Docker and set the Ghost Image

Later I had to connect to the instance through SSH and follow this steps:

  • Install the Docker Engine and its CLI as well, for this I followed the instructions details in this link.
  • Use the crypto keys generated by the EC2 AWS instace building process.
  • I Logged in as root user within due instance with the command sudo su.
  • I Created by convenience y this way having control of my files a folder named blog
  • I Entered to that folder with the command cd blog.
  • I Created a docker-compose.yml file with the command vim docker-compose.yml.
  • This openned the vim editor, later I pasted the code describe in the docker-compose secction from this link, the file will looks like this.
  • Located in the folder previously created (blog) I executed the command docker-compose up -d, this downloaded the Ghost Image and started the container in detached mode.
  • By the moment I had my container running, I could verify itself was being executing correctyly with the command docker ps, but later it surged the question. If If ha the EC2 AWS instance created, I have installed docker and the Ghost container is running, how can I access from my navigator to such container?

    For this I went to my EC2 instace's configurations and I openned the port that was using my EC2 AWS's instance with the the Ghost container (port 8080). In the next link you will find what you need to know to open yours instance ports

    After this with the public IP of my EC2 instance and the port dued openned (in this case 8080), I could access to the Ghost service. For example If my Instance's public IP is I just had to type in the browser, we use the http protocol instead the https as we have not configurated the SSL certificated generation, later I will be indicating how to achieve this with Traefik, If you have any doubt about the difference between Http and Https check this post.

    Already with this steps explained superficially, I was able to have a Ghost's instance practily without limits and with much better price than the Ghost Org offers. For give you an example the last month (february) my instance cost was $US2.10.

    Everything sounds nice, but itself took me three weeks to set it up investigating, proving in my local environment and over all ask for help without shame.

    With this I want to tech you the next lesson: Be aware you do not know everything and the things will not set as you want at the first time but, do not give up keep forward, rest, about all ask for help and this way you will se at least in the IT field you will achieve your goals o failing that you will grow a lot.