Skip to content

Commit

Permalink
TG-8 Setup docker environment configs for communication between images
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Villaronga committed Oct 18, 2024
1 parent 8593798 commit 099cd6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
1. Install [Docker](https://www.docker.com/products/docker-desktop/)
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. Create the operational network with the following command `docker network create keycloak_net`
1. Start Keycloak with the following command `docker run --net keycloak_net --name keycloak -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)

# 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. Start app with the following command `docker run --net keycloak_net --name dotnet_app -d -p 8081:8080 dotnet_keycloak-image`
1. Navigate to [app]((http://localhost:8081/)

# GitHub Actions
Expand Down

0 comments on commit 099cd6e

Please sign in to comment.