Docker-compose with ufw-docker in Ubuntu 20.04

Problem During development using docker-compose on Ubuntu, I realized something weird was happening with my UFW. It just did not work as it should. Publishing ports in docker-compose just overrid any UFW settings, and I was no longer able to use UFW to control the traffic. You could say that if you expose a port, the purpose is to keep it open, but sometimes I still want to use a firewall to open/close port access, without disturbing the running services....

November 2, 2020 · 1 min · Ask Blaker

Jekyll with Docker, Nginx and Traefik

Prerequisites A hardened VPS A domain with dns service. (Forward example.com to your vps ip) Jekyll > sudo apt-get install ruby-full build-essential zlib1g-dev > echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc > echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc > echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc > source ~/.bashrc > sudo gem install jekyll bundler > cd jekyll-directory > sudo bundle install > jekyll build A nice theme. This is, and I recommend: minimal-mistakes A folder structure like this: ....

November 1, 2020 · 2 min · Ask Blaker