SSL with Docker Swarm, Let's Encrypt and Nginx

A couple of weeks ago, Let's Encrypt announced that support for wildcard certificates was coming in Jan 2018 which got me and my devops friends very excited. Currently with LE, you have to specify all the domains (including www) you want to include in the certificate which is really annoying. With wildcard certificates, this limitation will be gone and you'll be able to create one certificate for all the different subdomains. 🙌 Getting SSL to work with Docker and Let's Encrypt has been one of my short term goals recently. I started researching and found that there are some convoluted ways of doing it which involve tying in lots of other services into your stack which you don't need. 👎 I've found continue...

Rapid development with Node.js and Docker

I have quite a few Nodejs repos on GitHub and until now I've not migrated any of them to Docker because I didn't really know how. The other day I had a ping on Twitter about the URL shortener I helped complete early this year, so I decided that now was the time to work out the best way to do it: @developius didn't you guys dockerize your URL shortener?maybe heptio can use it?— Leigh Capili (@capileigh) July 11, 2017 The service in question was built with Node and relied on MongoDB for storage. Seeing as the stack was so simple, I quickly wrote a Dockerfile and accompanying compose file so we could deploy the service continue...

Ship Serverless Functions to your Docker Swarm with FaaS

Functions as a Service or FaaS (by Alex Ellis) is a really neat way of implementing serverless functions with Docker. You can build out functions in any programming language and then deploy them to your existing Docker Swarm. In this post we'll look at an experimental CLI for making that even easier Below is a quick example of how easy this is to do. How it works This diagram gives an overview of how the FaaS function package, the Docker image, and the faas-cli deploy command fit together. To deploy a function onto a FaaS stack, you firstly must write the function itself. This is really easy and you can do it in any language which runs inside Docker (i. continue...

Raspberry Pi Swarm

A couple of weeks ago, a friend of mine reminded me about Docker. Docker is a containerisation platform which allows you to deploy different systems very quickly and efficiently on the same host machine. Not only that, you can put several Docker hosts together in order to create a swarm. It's like VMs, but cooler. Having followed a fantastic tutorial by the Docker Captain, Alex Ellis, I had Docker running on one of my Pies in under an hour. I thought this was pretty cool, but I soon got bored of firing up containers which ran little Node.js apps for me. I started to wonder what it would be like if I could build a Docker swarm out of continue...