Commit 73c9ada5 authored by tushar5526's avatar tushar5526
Browse files

Feat: Added keycloak-casa service

parents
No related merge requests found
Showing with 63 additions and 0 deletions
+63 -0
version: '3.7'
services:
keycloak-casa-db:
image: postgres
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: keycloak
volumes:
- db:/var/lib/postgresql/data
keycloak-casa:
image: keycloak-casa
build: ./keycloak-casa
depends_on:
- keycloak-casa-db
ports:
- 8080:8080
environment:
KC_DB_URL: jdbc:postgresql://keycloak-casa-db:5432/keycloak
KC_DB_USERNAME: postgres
KC_DB_PASSWORD: postgres
KC_HOSTNAME: locahost
KC_DB: postgres
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
command:
- "start-dev"
volumes:
db:
FROM quay.io/keycloak/keycloak:18.0.2 as builder
# Enable health and metrics support
# ENV KC_HEALTH_ENABLED=true
# ENV KC_METRICS_ENABLED=true
# Configure a database vendor
WORKDIR /opt/keycloak
COPY dasniko.keycloak-user-provider.jar /opt/keycloak/providers
# for demonstration purposes only, please make sure to use proper certificates in production instead
# RUN keytool -genkeypair -storepass password -storetype PKCS12 -keyalg RSA -keysize 2048 -dname "CN=server" -alias server -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -keystore conf/server.keystore
RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak:18.0.2
COPY --from=builder /opt/keycloak/ /opt/keycloak/
# change these values to point to a running postgres instance
ENV KC_DB=postgres
# ENV KC_DB_URL=<DBURL>
# ENV KC_DB_USERNAME=postgres
# ENV KC_DB_PASSWORD=postgres
# ENV KC_HOSTNAME=localhost
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
\ No newline at end of file
- This jar is compiled from https://github.com/UPHRH-platform/casa-keycloak and placed here.
- Implements a custom user storage provider to be integrated with casa database.
\ No newline at end of file
File added
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment