Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.08 KB

File metadata and controls

44 lines (28 loc) · 1.08 KB

Keycloak Docker image with Microsoft SQL Server support

This image inherits from the official keycloak docker image and adds support for Microsoft SQL Server / Azure SQL. It uses the official jdbc driver from https://docs.microsoft.com/de-de/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-2017.

Configuration

For normal configuration see the documentation of the official image: https://hub.docker.com/r/jboss/keycloak.

Additionally the following environment variables can be set:

  • MSSQL_HOST
  • MSSQL_PORT
  • MSSQL_DATABASE
  • MSSQL_USER
  • MSSQL_PASSWORD

Development

Make sure docker is installed and running: sudo service docker start

Building the docker image

docker build -t docker.io/mondata/keycloak-sqlserver:TAG .

Publishing the docker image to docker hub

If you have not done this earlier, login with docker hub:

docker login

Then, push the image:

docker push mondata/keycloak-sqlserver:TAG

Acknowledgments

This image is based on https://github.com/stocksoftware/docker-keycloak-sqlserver.