Let’s assume we have 3 Nodes in a Docker Swarm Setup.
Tick
Trick
Track
Track is the Leader/Manager. All Machines runs Debian 12.0 (RC, as it is not yet released)
Show Nodes
docker node ls
root@track:~# docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
b2zvkc374v08q2rpocljhkg5n tick Ready Active 23.0.2
khom3cx05bxqxktjq1k5j16gk * track Ready Active Leader 23.0.2
lq53s6mhuzvqrehks0j68sr3e trick Ready Active 23.0.2
Create Simple Service
Run a simple Docker service that uses an alpine-based filesystem, and isolates a ping to 8.8.8.8
Following a Working Example how to get Traefik and a few Dummy Containers running on Docker. If you wanna have a bit advanced Example and put some Variables in a “.env” File, you may wanna check this Post.
Requirements
Linux Host with Docker see here, Public IP Adress and rechable Port 80 & 443
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f99ad3355bae blog "/home/docker/init_a…"14 minutes ago Up 14 minutes 0.0.0.0:3031->3031/tcp quizzical_bardeen