From b09e5db6c05cb4457840a257dfc6e3a841cea82d Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Wed, 31 Dec 2025 15:42:04 +0000 Subject: [PATCH] paperless-ai --- hosts/tahani/paperless.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/tahani/paperless.nix b/hosts/tahani/paperless.nix index bd447ac..616dd2d 100644 --- a/hosts/tahani/paperless.nix +++ b/hosts/tahani/paperless.nix @@ -27,7 +27,6 @@ containers.paperless-ai = { image = "clusterzx/paperless-ai:latest"; autoStart = true; - ports = ["3000:3000"]; volumes = [ "paperless-ai-data:/app/data" ]; @@ -37,11 +36,11 @@ PAPERLESS_AI_PORT = "3000"; # Initial setup wizard will configure the rest PAPERLESS_AI_INITIAL_SETUP = "yes"; - # Paperless-ngx API URL accessible from container - PAPERLESS_API_URL = "http://host.docker.internal:${toString config.services.paperless.port}/api"; + # Paperless-ngx API URL accessible from container (using host network) + PAPERLESS_API_URL = "http://127.0.0.1:${toString config.services.paperless.port}/api"; }; extraOptions = [ - "--add-host=host.docker.internal:host-gateway" + "--network=host" ]; }; };