From 52b5362933febde5ac7a92f8d600c0c4a10f84fa Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Sun, 30 Sep 2018 19:58:22 +0200
Subject: [PATCH] Run docker-compose in the traefik directory to make sure it
 also runs in the docker:dind context

---
 Traefik.php | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Traefik.php b/Traefik.php
index c24c799..c29888e 100644
--- a/Traefik.php
+++ b/Traefik.php
@@ -83,8 +83,10 @@ class Traefik {
         'driver' => 'bridge',
       ];
       file_put_contents($traefikFile, Yaml::dump($traefik, 9, 2));
-      exec('docker-compose -f ' . $traefikFile . ' --project-name traefik stop');
-      exec('docker-compose -f ' . $traefikFile . ' --project-name traefik up -d');
+      $cwd = getcwd();
+      chdir($traefikPath);
+      exec('docker-compose --project-name traefik up -d');
+      chdir($cwd);
     }
   }
 
-- 
GitLab