From 8180ce464dbaf713b565ed8b9abb4d65e47995ef Mon Sep 17 00:00:00 2001 From: Gabriel Rufino Date: Fri, 29 Nov 2024 15:04:03 -0300 Subject: [PATCH] feat: traefik and auth for ollama --- compose.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compose.yaml b/compose.yaml index f524da4..e798901 100644 --- a/compose.yaml +++ b/compose.yaml @@ -182,6 +182,13 @@ services: - 11434:11434 volumes: - ollama:/root/.ollama + labels: + - traefik.enable=true + - traefik.http.middlewares.ollama-auth.basicauth.users=${OLLAMA_USERS} + - traefik.http.routers.ollama.rule=Host(`${OLLAMA_TRAEFIK_HOST-ollama.localhost}`) + - traefik.http.routers.ollama.tls=true + - traefik.http.routers.ollama.tls.certresolver=letsencrypt + - traefik.http.routers.ollama.middlewares=ollama-auth restart: ${OLLAMA_RESTART_POLICY-no} pgadmin: image: dpage/pgadmin4:${PGADMIN_VERSION:-8.2}