first commit
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
FROM quay.io/keycloak/keycloak:latest as builder
|
||||
|
||||
# Enable health and metrics support
|
||||
ENV KC_HEALTH_ENABLED=true
|
||||
ENV KC_METRICS_ENABLED=true
|
||||
|
||||
# Configure a database vendor
|
||||
ENV KC_DB=postgres
|
||||
|
||||
WORKDIR /opt/keycloak
|
||||
# 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:latest
|
||||
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=10.20.30.60
|
||||
ENV KC_DB_USERNAME=jubabox
|
||||
ENV KC_DB_PASSWORD=jubabox
|
||||
ENV KC_HOSTNAME=jubabox
|
||||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
|
||||
WORKDIR /opt/keycloak/bin
|
||||
CMD ["start"]
|
||||
|
||||
#CMD [ "start", "--auto-build" ]
|
||||
|
||||
# Context: RUN the build command
|
||||
#RUN /opt/keycloak/bin/kc.sh build
|
||||
|
||||
#https://github.com/keycloak/keycloak/issues/22759
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
## Keycloak Database ##
|
||||
########################
|
||||
keycloak-db:
|
||||
container_name: keycloak-db
|
||||
image: docker.io/bitnami/postgresql:15
|
||||
restart: on-failure
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- POSTGRESQL_USERNAME=bn_keycloak
|
||||
- POSTGRESQL_DATABASE=bitnami_keycloak
|
||||
volumes:
|
||||
- 'D:\Infastructurs-Projects\KLOAK\keycloak-data:/bitnami/postgresql'
|
||||
ports:
|
||||
- "5432:5432"
|
||||
#networks:
|
||||
# test-net:
|
||||
|
||||
## Keycloak Server ##
|
||||
#####################
|
||||
keycloak:
|
||||
container_name: wrenchboard-keycloak
|
||||
image: docker.io/bitnami/keycloak:22
|
||||
restart: on-failure
|
||||
environment:
|
||||
- KEYCLOAK_ADMIN=chiefsoft
|
||||
- KEYCLOAK_ADMIN_PASSWORD=may12002
|
||||
- DEBUG=true
|
||||
- DEBUG_PORT='*:8787'
|
||||
- DB_VENDOR=POSTGRES
|
||||
- DB_ADDR=keycloak-db
|
||||
- DB_DATABASE=bitnami_keycloak
|
||||
- DB_USER=bn_keycloak
|
||||
depends_on:
|
||||
- keycloak-db
|
||||
ports:
|
||||
- '8089:8080'
|
||||
- '8787:8787'
|
||||
# networks:
|
||||
# test-net:
|
||||
|
||||
volumes:
|
||||
keycloak-data:
|
||||
|
||||
#networks:
|
||||
# test-net:
|
||||
# external:
|
||||
# name: test-net
|
||||
# default:
|
||||
# driver: bridge
|
||||
@@ -0,0 +1 @@
|
||||
15
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user