fix: Changed docker#reload to restart and not remove containers

* Possibly fixes issues with fail2ban
This commit is contained in:
Piotr Dec 2026-05-08 03:58:48 +02:00
parent 0445a4cef8
commit ce77c0cf7d
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0

View file

@ -15,6 +15,8 @@ class DockerService:
def reload(self, compose_path: Path):
os.chdir(compose_path.parent)
self._client.compose.ps()
self._client.compose.down(remove_orphans=True)
# TODO: Check if container needs to be reloaded from scratch
# if len(self._client.compose.ps()) > 0:
# self._client.compose.restart()
# return
self._client.compose.up(detach=True)