Skip to content
Snippets Groups Projects
Commit 048f62ad authored by jurgenhaas's avatar jurgenhaas
Browse files

Recognize traefik container for both docker compose version 1 and 2

parent 48d019f1
Branches
Tags
No related merge requests found
......@@ -423,7 +423,7 @@ class Handler extends BaseHandler {
*/
private function getDockerProxy(string $projectname): string {
foreach ($this->readNetworkConfig($projectname)['Containers'] as $container) {
if (isset($container['Name']) && $container['Name'] === 'traefik_traefik_1') {
if (isset($container['Name']) && in_array($container['Name'], ['traefik_traefik_1', 'traefik-traefik-1'])) {
return explode('/', $container['IPv4Address'])[0];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment