It's ds0nt's blog again!

Here I'll be writing about many a thing. I'm going to be blogging my progress on my digital side-projects. I'll be blogging about technology, and a lot about things like Golang, Docker, microservice architecture. Also I'll be blogging about my travels, language learning, music, and other interesting things, a little bit too. Good thing there are these tags I can use to sort things, ne?

It's a Ghost blog running on Docker Compose, being hosted off my fiber connection with my desktop computer, currently.

About Ghost and Docker Compose

Ghost is an awesome blogging tool. I've searched through a bunch about a year ago. Took another scan through things today and seems like Ghost is still a great choice of blogging software. Nice and simple. Nothing distracting. I don't want to get distracted with any dev-ops just to write a blog. And Ghost really does satisfy all my needs, so I won't bother with static site generators or anything like that.

Docker compose is a tool I've lately been weaponizing in my hosting on ds0nt.com. It's perfect for light-weight deployments that won't scale beyond a single host. Since I write everything in Go, and I have a computer with nice specs, I'll not need anything beyond this until I get some quite-serious traffic. Go makes for extremely fast, and resource-efficient servers. When I need to scale up, I can convert it into a kubernetes deployment, which is actually quite easy if you know what you're doing.

How to host a Ghost blog using Docker Compose

First install Docker Compose.

then, create a docker-compose.yml file like this one

version: '2'  
services:  
  ghost:
    image: ghost
    ports:
      - 2302:2368
    volumes:
      - ./data/ghost:/var/lib/ghost

then, from the folder with the docker-compose.yml file, run

docker-compose up -d  

and then open this link in your browser http://localhost:2302/ghost

Tadah! You should now see the welcome page of your freshly created Ghost blog!

It's good to note that the blog's data lives in ./data/ghost, as specified by the volumes in the docker-compose.yml.

The next step you would take is getting a domain name, and configuring it to link to your blog.

In Summary...

Stay tuned for the awesome blog-stuffs.