From d0e48d571db6476c81ae02fd970b593c89c6421f Mon Sep 17 00:00:00 2001 From: xcad2k Date: Sat, 1 Jan 2022 15:21:03 +0100 Subject: [PATCH] authelia and whoami update --- docker-compose/authelia/README.md | 1 + .../authelia/config/configuration.yml | 1 + docker-compose/authelia/docker-compose.yml | 16 ++++++++++------ docker-compose/whoami/README.md | 1 + docker-compose/whoami/docker-compose.yml | 18 ++++++++++++++++++ 5 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 docker-compose/authelia/config/configuration.yml create mode 100644 docker-compose/whoami/README.md create mode 100644 docker-compose/whoami/docker-compose.yml diff --git a/docker-compose/authelia/README.md b/docker-compose/authelia/README.md index e69de29..c53c72d 100644 --- a/docker-compose/authelia/README.md +++ b/docker-compose/authelia/README.md @@ -0,0 +1 @@ +# TODO: ... \ No newline at end of file diff --git a/docker-compose/authelia/config/configuration.yml b/docker-compose/authelia/config/configuration.yml new file mode 100644 index 0000000..c53c72d --- /dev/null +++ b/docker-compose/authelia/config/configuration.yml @@ -0,0 +1 @@ +# TODO: ... \ No newline at end of file diff --git a/docker-compose/authelia/docker-compose.yml b/docker-compose/authelia/docker-compose.yml index 37abd29..8434911 100644 --- a/docker-compose/authelia/docker-compose.yml +++ b/docker-compose/authelia/docker-compose.yml @@ -1,5 +1,9 @@ version: '3' +networks: + frontend: + external: true + services: authelia: image: authelia/authelia @@ -8,15 +12,15 @@ services: - /etc/authelia:/config labels: - 'traefik.enable=true' - - 'traefik.http.routers.authelia.rule=Host(`authelia.example.com`)' - - 'traefik.http.routers.authelia.entrypoints=https' + - 'traefik.http.routers.authelia.rule=Host(`your-domain.com`)' + - 'traefik.http.routers.authelia.entrypoints=websecure' - 'traefik.http.routers.authelia.tls=true' - # - 'traefik.http.routers.authelia.tls.certresolver=letsencrypt' - - 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://authelia.example.com' # yamllint disable-line rule:line-length + - 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://your-domain.com' # yamllint disable-line rule:line-length - 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true' - - 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email' # yamllint disable-line rule:line-length + - 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email' # yamllint disable-line rule:line-length expose: - 9091 restart: unless-stopped healthcheck: - disable: true \ No newline at end of file + disable: true + diff --git a/docker-compose/whoami/README.md b/docker-compose/whoami/README.md new file mode 100644 index 0000000..c53c72d --- /dev/null +++ b/docker-compose/whoami/README.md @@ -0,0 +1 @@ +# TODO: ... \ No newline at end of file diff --git a/docker-compose/whoami/docker-compose.yml b/docker-compose/whoami/docker-compose.yml new file mode 100644 index 0000000..b9a1ddf --- /dev/null +++ b/docker-compose/whoami/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3' + +networks: + frontend: + external: true + +services: + whoami: + image: traefik/whoami + container_name: whoami + networks: + - frontend + labels: + - 'traefik.enable=true' + - 'traefik.http.routers.public.rule=Host(`your-domain.com`)' + - 'traefik.http.routers.public.entrypoints=websecure' + - 'traefik.http.routers.public.tls=true' + restart: unless-stopped \ No newline at end of file