Node.js – How to Restart a Docker Container After a Crash

I’m currently working on a Node.js application that runs within a Docker container. I wanted the container to auto-restart whenever it crashed and I found out that this task could be accomplished with tools like PM2 and forever. I decided to give PM2 a try. Unfortunately, it kept restarting the container in an …

How to Expose Your Docker Ports Only to the Local Network

I’m currently in the process of breaking a monolith application into microservices that run in Docker containers. To keep things simple, the Docker containers are going to run on the same server as the monolith – at least, for the time being. I wanted my containers to be able to communicate with each other as …

How to Claim Bitcoin Cash (BCH)

On August 1, 2017, a hard fork happened on Bitcoin’s blockchain, and as a result, Bitcoin Cash was born. A hard fork occurs when the rules for a given cryptocurrency are changed, but a significant portion of its users don’t agree with them. In other words, some users stick to the old rules while others …