diff --git a/Traefik.php b/Traefik.php
index 8f5b607dab2dafb64ba2cc27c8b2473375fd9b10..8f72c44a9b494306fd668da01eb31ca378ed0ec3 100644
--- a/Traefik.php
+++ b/Traefik.php
@@ -147,6 +147,7 @@ class Traefik {
       'version' => '3.3',
       'services' => [
         'traefik' => [
+          'container_name' => 'traefik',
           'image' => 'traefik:2.7',
           'command' => [
             '--api=true',
@@ -190,6 +191,7 @@ class Traefik {
     ];
     if ($this->addon_portainer) {
       $config['services']['portainer'] = [
+        'container_name' => 'portainer',
         'image' => 'portainer/portainer-ce:2.11.1',
         'command' => '-H unix:///var/run/docker.sock',
         'restart' => 'unless-stopped',
@@ -221,6 +223,7 @@ class Traefik {
       $config['services']['traefik']['ports'][] = '9900:9900';
       $config['services']['traefik']['ports'][] = '9901:9901';
       $config['services']['hub-agent'] = [
+        'container_name' => 'hub-agent',
         'image' => 'ghcr.io/traefik/hub-agent-traefik:v0.7.0',
         'command' => [
           'run',