From b12eb59db6b71d94c22a96fb8d73243f8e5349f3 Mon Sep 17 00:00:00 2001 From: Mo8it <mo8it@proton.me> Date: Mon, 19 Dec 2022 22:41:20 +0100 Subject: [PATCH] Add LLDAP --- containers/lldap.fish | 11 +++++++++++ volumes/traefik/dynamic.yml | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100755 containers/lldap.fish diff --git a/containers/lldap.fish b/containers/lldap.fish new file mode 100755 index 0000000..5b047cf --- /dev/null +++ b/containers/lldap.fish @@ -0,0 +1,11 @@ +#!/usr/bin/env fish + +set -l container_name lldap +set -l container_volumes_dir ~/volumes/$container_name + +podman-default-create \ + $container_name \ + --net traefik \ + -v $container_volumes_dir/data:/data:Z \ + --label "io.containers.autoupdate=registry" \ + docker.io/nitnelave/lldap:stable diff --git a/volumes/traefik/dynamic.yml b/volumes/traefik/dynamic.yml index 414c8ab..c47b7db 100644 --- a/volumes/traefik/dynamic.yml +++ b/volumes/traefik/dynamic.yml @@ -88,6 +88,9 @@ http: to_ihatemoney: rule: Host(`ihatemoney.mo8it.com`) service: ihatemoney + to_lldap: + rule: Host(`ldap.mo8it.com`) + service: lldap services: nginx: @@ -130,3 +133,7 @@ http: loadBalancer: servers: - url: http://ihatemoney + lldap: + loadBalancer: + servers: + - url: http://lldap:17170