Skip to content
Snippets Groups Projects
Commit 52b53629 authored by jurgenhaas's avatar jurgenhaas
Browse files

Run docker-compose in the traefik directory to make sure it also runs in the docker:dind context

parent a5686a69
No related branches found
Tags v1.1.1
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment