Don't ignore containers that are running locally and not in swarm mode just because swarm mode is enabled!

This commit is contained in:
Greyscale 2022-08-09 02:12:09 +01:00
parent 9d437e266f
commit 2b5c8b12d8
No known key found for this signature in database
GPG key ID: CEC4822A25BA80C5

View file

@ -611,7 +611,11 @@ class Bouncer
}
$this->logger->info(sprintf('%s Swarm mode is %s.', Emoji::CHARACTER_HONEYBEE, $this->isSwarmMode() ? 'enabled' : 'disabled'));
$targets = $this->isSwarmMode() ? $this->findContainersSwarmMode() : $this->findContainersContainerMode();
$targets = array_merge(
$this->findContainersContainerMode(),
$this->isSwarmMode() ? $this->findContainersSwarmMode() : []
);
$this->wipeNginxConfig();