Dive into Docker takes you from "What is Docker?" to confidently applying Docker to your own projects. It's packed with best practices and examples. Start Learning Docker →
A low port is anything < 1024. You can use sysctl to fix permission errors to run a containerized web process that listens on port 80.
It's important to differentiate these to protect your app from not starting up if a required env var is missing.
It's worth documenting and running through the process before disaster strikes while the stakes are low.
Some web frameworks will only load a specific environment based config file in that env, which could lead to production errors.
I recently came across a bug when trying to pin Docker Compose v2 using Ansible 2.13.3. Here's the steps I took to determine it was a bug.
You could use this site to test an HTTP client or perhaps the return value of a mocked API response in development.
We'll go over creating the logic for the whitelist, an optional exempt list, working with CIDR blocks and benchmarking a few solutions.
Redis has 2 commands to help you discover how fast or slow it is to connect to your Redis server and how good your Redis server is.
More specifically a bare bones health check and another separate check that connects to databases and other services you might have.
This is a quick and dependable way to make sure your load balancer or web server is serving the correct certificate.
These 12 methodologies help you build flexible and resilient web applications with any tech stack.
I recently upgraded to the latest major release of the Terraform EKS module, got a little stuck and opened a PR to clarify things.
This could be handy to use while testing your deployment strategy to make sure you're able to perform zero downtime deploys.
After 100+ episodes and 2+ years of trying to make it work, I think it's time to take an extended break.
You may have a more complicated when condition where it's not obvious on how convert it into a handler. Here's what I did.
This is specific to using Docker Compose on a single server deploy. Here's how I arrived at this choice after years of experimenting.
This panned out over the last 11 months of running a podcast where I chatted with folks about tech stacks, lessons learned and best tips.
I received an interesting email where I thought an elaborate phishing attempt was going to take place, but it turns out it was DNS again.
In this video, we'll go over both backing up and restoring a database with a few lines of shell scripting and 2 cron jobs.
In this video, we'll go over how to set up a health check endpoint in Flask and use the free UptimeRobot service to monitor your uptime.
In this video we'll cover how to use the same gunicorn config file in dev and prod but still be able to tweak settings with env variables.
I wanted to launch quickly but also have the site be technically sound from day one. Jekyll and DigitalOcean helped me do that.
The site has both podcast episodes and text interviews where folks talk about how they are running small and large web apps in production.
In this video we'll go over a Flask extension that md5 tags and gzips your static files. We'll cover both the why and the how.
Chances are you'll eventually move a domain name from one registrar to another. Here's two ways to do it with no downtime.
Today I had a 1 hour adventure debugging a very subtle issue with Ansible. Here's what went wrong, how to fix it and how I approached it.
Let me tell you a story on how a subdomain of mine managed to serve 390,000+ PDF books without any of my servers being compromised.
Enabling HTTP/2 is really easy and doing so will give you a number of free wins, such as faster page loads and better SEO rankings.
Domain registrars have their pros and cons just like any service. Here's 5 main reasons why I chose NameSilo over everyone else.
Going Serverless has been taking off recently. There's conferences popping up and it sounds very compelling. Yay or nay?
It's finally time to deploy your app to production. There's a few Docker related tools to choose from, but will Compose work?
Both tools allow you to manage a cluster of servers that run 1 or more services on them. Let's go over both.
Learn how Ansible and nginx helped me move a bunch of content to this domain without breaking anything for the most part.
I'm sure at some point you'll want to install Docker and Docker Compose on your production server, and Ansible makes it easy.
There is some overlap on what each of these tools can do for you, but at the end of the day it makes a lot of sense to use both together.
How DNS may cause temporary errors when trying to register an SSL certificate with Let's Encrypt, or anything really.
Like you, I'm super protective of my inbox, so don't worry about getting spammed. You can expect a few emails per month (at most), and you can 1-click unsubscribe at any time. See what else you'll get too.