diff --git a/paperless/docker-compose-version-fix.patch b/paperless/docker-compose-version-fix.patch new file mode 100644 index 0000000..aa16057 --- /dev/null +++ b/paperless/docker-compose-version-fix.patch @@ -0,0 +1,12 @@ +--- /usr/local/lib/python3.11/dist-packages/docker/utils/utils.py 2024-10-08 22:38:19.859988188 +0200 ++++ utils.py 2024-10-27 17:06:27.445617219 +0100 +@@ -350,7 +350,8 @@ + return device_list + + +-def kwargs_from_env(environment=None): ++def kwargs_from_env(environment=None, ssl_version=None): ++ # https://stackoverflow.com/a/77642303 + if not environment: + environment = os.environ + host = environment.get('DOCKER_HOST') diff --git a/paperless/init.sls b/paperless/init.sls index 20e34e9..355cb12 100644 --- a/paperless/init.sls +++ b/paperless/init.sls @@ -102,6 +102,12 @@ tika-docker-container-running: - networks: - paperless-network +# https://stackoverflow.com/a/77642303 +docker-compose-version-fix: + file.patch: + - name: /usr/local/lib/python3.11/dist-packages/docker/utils/utils.py + - source: salt://paperless/docker-compose-version-fix.patch + paperless-docker-compose-env-file-present: file.managed: - name: /opt/paperless/docker-compose.env