# PostgreSQL 16 Cluster & Keycloak Setup
This project sets up a PostgreSQL 16 database cluster alongside Keycloak for identity and access management. Both services are containerized using Docker, making it easy to deploy and manage.
## Prerequisites
- Docker installed on your machine
- Docker Compose installed (if not included with Docker)
## Running the Cluster
You can start the cluster by running the provided script or using Docker Compose:
### Option 1: Run with Script
```bash
./run.sh
docker compose --compatibility up -d --build
This command builds the images and starts the services in detached mode.
To follow the logs of the running services, use the following commands:
docker logs --follow postgresql
docker logs --follow keycloak
- URL: http://localhost:9080
- Admin Credentials:
- Username:
admin
- Password:
admin
- Username:
You can find the OpenID configuration endpoint here:
http://localhost:9080/realms/master/.well-known/openid-configuration
For more information on Keycloak's REST API, refer to the official documentation:
https://www.keycloak.org/docs-api/latest/rest-api/index.html
- pgAdmin URL: http://localhost:5050/browser/
- pgAdmin Credentials:
- Username:
[email protected]
- Password:
admin
- Username:
To stop the running services, use the following command:
docker compose down
- PostgreSQL Version: 16
- Keycloak Version: Latest
- Ports:
- PostgreSQL:
5432
- Keycloak:
9080
- pgAdmin:
5050
- PostgreSQL:
This setup provides a complete development environment for working with PostgreSQL and Keycloak. You can customize the configuration as needed for production environments.
### Important
- Deployment with PostgreSQL 17 and Keycloak 26.0 failed