Best Docker Container Server Setup // Docker Swarm, CephFS, and Portainer

VirtualizationHowto October 17, 2024
Video Thumbnail

About

No channel description available.

Video Description

I have been in search for the perfect docker setup for home lab and production environments when Kubernetes doesn't really make sense in every situation. Also, especially for a lot of self-hosted services, many of these do not work well with Kubernetes. Home Assistant is one that comes to mind among others. I have found arguably the best docker container environment in most cases is not Kubernetes, but a Docker Swarm cluster with Microceph installed with distributed storage running CephFS, and Portainer is the management tool that brings it all together. I step you guys through how you can build all of this, including Docker Swarm configuration, CephFS configuration, networking, high availability, and the nuggets of management from the Portainer side. If you want to copy the commands used in this tutorial, check out the following written blogs that encompass the steps: - https://www.virtualizationhowto.com/2024/10/docker-swarm-is-awesome-with-portainer/ - https://www.virtualizationhowto.com/2024/10/try-microceph-for-an-easy-ceph-install/ - https://www.virtualizationhowto.com/2024/10/cephfs-for-docker-container-storage/ If you want to know how to install Docker in Ubuntu: https://docs.docker.com/engine/install/ubuntu/ Introduction - 0:00 Prerequisites for the config - 0:42 Overview of Docker Swarm - 1:28 Kubernetes vs Docker Swarm - 2:00 Initializing Docker Swarm - 2:48 Promoting multi-manager nodes in Docker Swarm - 3:22 Installing Keepalived - 3:41 Configuring Keepalived - 4:18 Creating the backup Keepalived nodes - 5:00 Starting and enabling Keepalived - 6:10 Pinging the virtual IP - 6:58 Introducing shared storage with Microceph - 7:00 Ceph with Proxmox - 7:52 Listing the disks on each Docker Swarm node - 8:41 Installing Microceph - 8:52 Bootstrapping the microceph cluster - 9:47 Adding the 2nd and 3rd microceph cluster hosts - 10:13 Adding the disks for each node to microceph - 11:18 Checking the status of microceph cluster - 11:55 Creating the microceph storage pools - 12:08 Creating the CephFS data storage for Docker Swarm - 12:27 Creating the mount directory for mounting CephFS storage on each node - 12:49 Getting the Ceph client admin token - 13:05 Adding the mount command in the fstab file - 13:24 Force mounting FSTAB and reloading system then checking storage - 13:48 Introducing Portainer - 15:28 Looking at the free 3-node license for business edition - 16:18 Looking at the Portainer to manage your Docker, Docker Swarm, and Kubernetes environments - 16:40 Looking at container information - 17:23 Looking at outdated images shown in Portainer - 17:47 Quick actions in Portainer - 18:17 Performance stats in Portainer - 18:47 Swarm details and cluster visualizer - 19:02 Draining or pausing nodes - 19:52 Using templates in Portainer - 20:22 Pulling compose files from a Git repository - 20:44 Discussing how it all fits together & wrapping up - 21:14

You May Also Like

Transform Your Garden Today

AI-recommended products based on this video

Loading...
Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Garden Starter Kit Growing Kit Including Wooden Box Burlap Pots Soil Discs Gardening Tools Unique Easter Birthday Christmas Gift Ideas for Women Mom

Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Garden Starter Kit Growing Kit Including Wooden Box Burlap Pots Soil Discs Gardening Tools Unique Easter Birthday Christmas Gift Ideas for Women Mom

(0)
$30.99
FREE delivery Jun 19 - Jul 3
Loading...
Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Starter Set Herb Growing Kit Including Wooden Box, Burlap Pots, Soil Discs, Gardening Tools, Unique Easter Birthday Christmas Gift Ideas for Women Mom

Herb Garden Planter Indoor Kit 21Pcs Kitchen Herb Starter Set Herb Growing Kit Including Wooden Box, Burlap Pots, Soil Discs, Gardening Tools, Unique Easter Birthday Christmas Gift Ideas for Women Mom

(0)
$21.99
$9.99 delivery Jun 19 - Jul 3
Loading...
Gift for Men,Women BIBURY 15-in-1 Multi-Functional Pliers & 18-in-1 Snowflake Multitool, Foldable Multi-Tool Multitool Pocket Tool in Durable Stainless Steel, Camping Gadgets for Outdoor Adventurers

Gift for Men,Women BIBURY 15-in-1 Multi-Functional Pliers & 18-in-1 Snowflake Multitool, Foldable Multi-Tool Multitool Pocket Tool in Durable Stainless Steel, Camping Gadgets for Outdoor Adventurers

(400)
$29.99
FREE delivery Thu, Jun 19 on your first order
Loading...
Electric Grill Brush, Stainless Steel Power Roller Blasts Rotating Cleaning Brush with Built-in Led Lights, Rechargeable BBQ Brush Cleaner for Outdoor BBQ Bathroom and Kitchen (Brown/1PC)

Electric Grill Brush, Stainless Steel Power Roller Blasts Rotating Cleaning Brush with Built-in Led Lights, Rechargeable BBQ Brush Cleaner for Outdoor BBQ Bathroom and Kitchen (Brown/1PC)

(0)
$56.99
$14.99 delivery Aug 14 - 21
Loading...
Electric Grill Brush, Stainless Steel Power Roller Blasts Rotating Cleaning Brush with Built-in Led Lights, Rechargeable BBQ Brush Cleaner for Outdoor BBQ Bathroom and Kitchen (Brown)

Electric Grill Brush, Stainless Steel Power Roller Blasts Rotating Cleaning Brush with Built-in Led Lights, Rechargeable BBQ Brush Cleaner for Outdoor BBQ Bathroom and Kitchen (Brown)

(0)
$56.99
$15.99 delivery Aug 14 - 21
Loading...
Pocket Multitool with Safety Locking Handy, Gifts for Men, 12 in 1 Multi Tool with Pliers Knife Bottle Opener Screwdriver Saw, Perfect for Outdoor, Survival, Camping, Hiking, Simple Repair

Pocket Multitool with Safety Locking Handy, Gifts for Men, 12 in 1 Multi Tool with Pliers Knife Bottle Opener Screwdriver Saw, Perfect for Outdoor, Survival, Camping, Hiking, Simple Repair

(2,461)
$27.98$26.99
FREE delivery Thu, Jun 19 on your first order
300+ bought in past month
Loading...
Deluxe Herb Garden Kit – 8 Variety Herbs for Indoor & Outdoor – Get Growing w/Pots, Potting Soil, and Detailed Gardening Guide for Window Herb Garden - DIY Gardening Kit Gift for Women & Men

Deluxe Herb Garden Kit – 8 Variety Herbs for Indoor & Outdoor – Get Growing w/Pots, Potting Soil, and Detailed Gardening Guide for Window Herb Garden - DIY Gardening Kit Gift for Women & Men

(276)
$88.74$82.24
FREE delivery Jun 11 - 13
Loading...
Christmas Santa Solar Kettle Lights - Garden Lawn Decorative Lights, Claus Ground Decorative Pathway Lamp, Patio Waterproof Watering Can Light Vintage Metal Outdoor Decoration(Colorful)

Christmas Santa Solar Kettle Lights - Garden Lawn Decorative Lights, Claus Ground Decorative Pathway Lamp, Patio Waterproof Watering Can Light Vintage Metal Outdoor Decoration(Colorful)

(0)
$20.50$17.68
$1.99 delivery Nov 21 - 24
Loading...
100 ft Expandable Garden Hose - 2025 Upgraded Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose
Best Seller

100 ft Expandable Garden Hose - 2025 Upgraded Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose

(249)
$46.79
FREE delivery Fri, Aug 8
2K+ bought in past month
Loading...
Expandable Garden Hose Set 100FT Upgraded Flexible Water Hose 3/4" Solid Brass Fittings with 10 Function Sprayer Nozzle Gardening Flexible Hose Pipe with Storage Bag Red

Expandable Garden Hose Set 100FT Upgraded Flexible Water Hose 3/4" Solid Brass Fittings with 10 Function Sprayer Nozzle Gardening Flexible Hose Pipe with Storage Bag Red

(51)
$35.19
FREE delivery Tue, Jul 1
500+ bought in past month
Loading...
75 ft Expandable Garden Hose - All New 2025 Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose
Best Seller

75 ft Expandable Garden Hose - All New 2025 Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose

(193)
$39.95$32.65
FREE delivery Tue, Jul 1
1K+ bought in past month
Loading...
75 FT Garden Hose – 2025 Upgarded Expandable Garden Hose w/10 Pattern Spray Nozzle, 650psi Pure Brass 3/4” Fittings – Lightweight, Durable, and Kink-Free, Retractable Water Hoses for Gardening(Black)

75 FT Garden Hose – 2025 Upgarded Expandable Garden Hose w/10 Pattern Spray Nozzle, 650psi Pure Brass 3/4” Fittings – Lightweight, Durable, and Kink-Free, Retractable Water Hoses for Gardening(Black)

(62)
$31.95$29.00
FREE delivery Sat, Jun 28 on your first order
1K+ bought in past month