improve some deails with docker-socket-proxy

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-08-24 16:18:03 +02:00
parent 53fae60c4e
commit c4fb5a0961
3 changed files with 7 additions and 3 deletions

View file

@ -26,7 +26,7 @@ ENV ALLOW_RESTARTS=1 \
NODES=0 \
PING=1 \
PLUGINS=0 \
POST=0 \
POST=1 \
SECRETS=0 \
SERVICES=0 \
SESSION=0 \
@ -39,3 +39,5 @@ ENV ALLOW_RESTARTS=1 \
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
USER haproxy:root
HEALTHCHECK CMD nc -z 127.0.0.1 2375 || exit 1

View file

@ -7,7 +7,7 @@ global
maxconn 4000
# Turn on stats unix socket
server-state-file /var/lib/haproxy/server-state
# server-state-file /var/lib/haproxy/server-state
defaults
mode http

View file

@ -831,7 +831,9 @@ class DockerActionManager
public function ConnectContainerToNetwork(Container $container) : void
{
$this->ConnectContainerIdToNetwork($container->GetIdentifier(), $container->GetInternalPort());
if ($container->GetIdentifier() !== 'nextcloud-aio-docker-socket-proxy') {
$this->ConnectContainerIdToNetwork($container->GetIdentifier(), $container->GetInternalPort());
}
if ($container->GetIdentifier() === 'nextcloud-aio-nextcloud' || $container->GetIdentifier() === 'nextcloud-aio-docker-socket-proxy') {
$this->ConnectContainerIdToNetwork($container->GetIdentifier(), $container->GetInternalPort(), 'nextcloud-aio-docker-socket-proxy-network');
}