This is a sample README for a Dockerized Keycloak-Spring application.
Before you begin, ensure you have met the following requirements:
- Docker: Make sure you have Docker installed. You can download and install it from Docker's official website.
To get started with this application, follow these steps:
-
Clone this repository:
git clone https://github.com/BrunoSzczuk/keycloak-spring.git
Navigate to the project directory:
cd keycloak-spring
To build the Docker image for the Keycloak-Spring application, use the following command:
docker build -t keycloak-spring:latest .
To run the Keycloak-Spring application as a Docker container, use the following command:
docker run -p 8080:8080 keycloak-spring:latest
This will start the application on port 8080.
Alternatively, you can use Docker Compose to simplify running the application and its dependencies. Docker Compose is configured using the docker-compose.yml file provided in this repository.
Start Services with Docker Compose To start the application and its dependencies using Docker Compose, run the following command:
docker-compose up -d
This will start the application and any associated services defined in the docker-compose.yml file.
Stop Services with Docker Compose To stop the services started with Docker Compose, use the following command:
docker-compose down