Update Docker & Kubernetes/Docker/Docker Compose/Keycloak.md

This commit is contained in:
2024-07-11 05:44:06 -06:00
parent befe0da39f
commit 6a2b666f9d

View File

@ -123,7 +123,7 @@ At this point, we need to add the official Keycloak plugin to Traefik's main con
## Install Keycloak Plugin ## Install Keycloak Plugin
If you do not already have the following added to the end of your `command:` section of the docker-compose.yml file in Portainer, go ahead and add it: If you do not already have the following added to the end of your `command:` section of the docker-compose.yml file in Portainer, go ahead and add it:
``` yml ``` yaml
# Keycloak plugin configuration # Keycloak plugin configuration
- "--experimental.plugins.keycloakopenid.moduleName=github.com/Gwojda/keycloakopenid" - "--experimental.plugins.keycloakopenid.moduleName=github.com/Gwojda/keycloakopenid"
- "--experimental.plugins.keycloakopenid.version=v0.1.34" - "--experimental.plugins.keycloakopenid.version=v0.1.34"
@ -154,13 +154,13 @@ At this point, within Keycloak, you need to configure domains that you are allow
## Adding Middleware to Dynamic Traefik Service Config Files ## Adding Middleware to Dynamic Traefik Service Config Files
At this point, you are in the final stretch, you just need to add the middleware to the Traefik dynamic config files to ensure that it routes the traffic to Keycloak when someone attempts to access that service. Put the following middleware section under the `routers:` section of the config file. At this point, you are in the final stretch, you just need to add the middleware to the Traefik dynamic config files to ensure that it routes the traffic to Keycloak when someone attempts to access that service. Put the following middleware section under the `routers:` section of the config file.
``` yml ``` yaml
middlewares: middlewares:
- auth-bunny-lab-io # Referencing the Keycloak Server - auth-bunny-lab-io # Referencing the Keycloak Server
``` ```
A full example config file would look like the following: A full example config file would look like the following:
``` yml ``` yaml
http: http:
routers: routers:
example: example: