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

composer/library/docker-traefik#9 Name containers explicitly

parent fc539633
No related branches found
No related tags found
1 merge request!30Merging develop into main
Pipeline #542795 passed
......@@ -688,7 +688,7 @@ class Handler extends BaseHandler {
*/
private function getDockerProxy(): string {
foreach ($this->readNetworkConfig()['Containers'] as $container) {
if (isset($container['Name']) && in_array($container['Name'], ['traefik_traefik_1', 'traefik-traefik-1'])) {
if (isset($container['Name']) && in_array($container['Name'], ['traefik', '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.
Finish editing this message first!
Please register or to comment