From 25009a427181d9a577c6e8700ab00fbafb30009d Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 14 Apr 2022 22:36:59 -0700 Subject: [PATCH] + Loki logging driver for gitea and filebrowser --- docker-host/setup/tasks/file-server.yml | 3 +++ docker-host/setup/tasks/git-stack.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docker-host/setup/tasks/file-server.yml b/docker-host/setup/tasks/file-server.yml index a18afbc..82af278 100644 --- a/docker-host/setup/tasks/file-server.yml +++ b/docker-host/setup/tasks/file-server.yml @@ -23,6 +23,9 @@ - "file-storage:/srv" ports: - "{{FILEBROWSER_PORT}}:80" + log_driver: loki + log_options: + loki-url: "http://localhost:{{LOKI_PORT}}/loki/api/v1/push" diff --git a/docker-host/setup/tasks/git-stack.yml b/docker-host/setup/tasks/git-stack.yml index 551cd8c..0740668 100644 --- a/docker-host/setup/tasks/git-stack.yml +++ b/docker-host/setup/tasks/git-stack.yml @@ -26,5 +26,8 @@ ports: - "{{GITEA_PUB_PORT}}:3000" - "{{GITEA_SSH_PORT}}:22" + log_driver: loki + log_options: + loki-url: "http://localhost:{{LOKI_PORT}}/loki/api/v1/push"