Everything Containers Blog

Welcome to containers.fan tech blog, where I write about anything containers from docker, kubernetes, docker swarm, aws ecs, etc. - Feel free to reach out to me on Twitter 馃惁 @ruanbekker

Speed up Maven Docker builds with Cache

This post will demonstrate how to speed up your maven builds using docker and buildkit as long as the docker build on the same docker host. Layer Caching With docker we know that order matters in a dockerfile, as each layer is cached, and therefore to optimise a dockerfile we set the dockerfile from least changes to most changes, as this example: FROMmaven:3.6.3-openjdk-15COPY . /appRUN mvn clean packageARG JAR_FILE=/app/target/*.jarRUN mv $JAR_FILE /app/app....

July 14, 2021 路 3 min 路 Ruan Bekker

Setup RocketChat Communication Platform on Docker

In this post we will setup a self-hosted open source communication platform called rocket chat on docker, using docker compose and we will secure our traffic with https using traefik and letsencrypt. What is Rocket Chat? RocketChat is a awesome self-hosted open source chat server. If you are familliar with Slack, RocketChat is a open-source alternative. Installing Rocket Chat We will be using Traefik to do SSL termination and host based routing, if you don鈥檛 have Traefik running already, you can follow this post to get that set up:...

July 7, 2021 路 3 min 路 Ruan Bekker

Setup Bitwarden Password Manager on Docker with Traefik Proxy

Today we will setup Bitwarden and Traefik Proxy on Docker using Docker Compose. We will make use of Letsencrypt for our SSL Certificates so that our communcation from the clients and server is secure and then we will install the Bitwarden Firefox browser extension to save our passwords for our web applications on Bitwarden password manager. What is Bitwarden Bitwarden is open source password manager, similar to Last Pass and makes it super easy to generate and store unique passwords for any browser or device....

June 23, 2021 路 5 min 路 Ruan Bekker

Run Traefik version 2 on Docker

In this tutorial we will be setting up Traefik v2 as our reverse proxy with port 80 and 443 enabled, and then hook up a example application behind the application load balancer, and route incoiming requests via host headers. What is Traefik Traefik is a modern HTTP reverse proxy and load balancer that makes deploying microservices super easy by making use of docker labels to route your traffic based on host headers, path prefixes etc....

June 16, 2021 路 4 min 路 Ruan Bekker

Setup Wireguard VPN on Docker

In this tutorial, I will demonstrate how to setup a Secure VPN using Wireguard on Docker using docker-compose and then we will use a Windows PC to connect to our Wireguard VPN using the Wireguard Client to access our Private Network in a secure way. Wireguard Configuration The following configurations should be changed, depending on your setup: TZ - timezone SERVERURL - this will be set where your client will connect to SERVERPORT - this will be set in your client config (the listen port is hardcoded to 51820) PEERDNS - this is the dns server that will be set in the client config (I use PiHole for DNS to block ads) PEERS - this is used to create configs for your clients INTERNAL_SUBNET - this is optional, but this is the subnet the connected clients will use Start the Wireguard Server The content of our docker-compose....

June 8, 2021 路 3 min 路 Ruan Bekker