Best Practices for Deploying Docker in Production

0
8
Asked By SillyCactus92 On

Hey everyone! I'm curious about how you typically deploy your Docker projects to production. What setups do you prefer, or do you sometimes skip Docker altogether for production environments? Let's hear your experiences!

1 Answer

Answered By BricknMortar88 On

In my experience, the common approach is to push your code to Git, which then triggers a pipeline. This pipeline builds the Docker image and pushes it to a registry. A second pipeline takes care of deploying the image to a server, which could be something like AKS, GKE, or EKS. For my homelab, I mix things up with Debian and Docker Compose, along with k3s. I often use rsync for Docker hosts and kapp for k3s deployments.

TechyTommy21 -

Do you reconfigure the pipeline for each project in your homelab? At work, I assume you use Docker Compose locally for development before sending everything to Kubernetes. How many users do you have, and do you experience any issues switching between Docker and Kubernetes?

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.