From c26943d7c844ee6528a221b3458bca51dafa9187 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Thu, 30 Jun 2022 13:20:45 +0200
Subject: [PATCH] composer/library/docker-traefik#9 Name containers explicitly

---
 Traefik.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Traefik.php b/Traefik.php
index 8f5b607..8f72c44 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',
-- 
GitLab