From afd58ca9a0ad0ba4a83106222cba0679e95959df Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Wed, 16 Oct 2024 08:24:07 -0500 Subject: [PATCH] Added dotnet docker file and instructions on readme --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3252b38..9680705 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,9 @@ 1. Pull KeyCloak image from DockerHub with the following command `docker pull keycloak/keycloak` 1. Start Keycloak with the following command `docker run -p 8080:8080 -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:26.0.0 start-dev` This command starts Keycloak exposed on the local port 8080 and creates an initial admin user with the `username admin` and `password admin`. -1. Log in into [Keycloak](http://localhost:8080/admin) \ No newline at end of file +1. Log in into [Keycloak](http://localhost:8080/admin) + +# DotNet Setup +1. From [DockerFile directory](/KeyCloakIntegration/) run: `docker build -t dotnet_keycloak-image -f DockerFile .` +1. Start app with the following command `docker run -d -p 8081:8080 dotnet_keycloak-image` +1. Navigate to [app]((http://localhost:8081/) \ No newline at end of file