Skip to content

Commit 0a27ea1

Browse files
committed
chore: Switch to keycloak/keycloak image
Signed-off-by: Christopher Lepski <[email protected]>
1 parent 0ce4728 commit 0a27ea1

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

compas/docker-compose-postgresql.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ services:
3333
compas: true
3434
ports:
3535
- "8089:8080"
36+
- "8080:8080"
3637
environment:
37-
- KEYCLOAK_HOSTNAME=${COMPAS_HOSTNAME}
38-
- KEYCLOAK_HTTP_RELATIVE_PATH=auth
39-
- KEYCLOAK_HTTP_PORT=8080
38+
- KC_HOSTNAME=${COMPAS_HOSTNAME}
39+
- KC_HTTP_RELATIVE_PATH=auth
40+
- KC_HTTP_ENABLED=true
41+
- KC_PROXY_HEADERS=xforwarded
4042
volumes:
41-
- ./keycloak/realms:/opt/bitnami/keycloak/data/import
43+
- ./keycloak/realms:/opt/keycloak/data/import
4244
healthcheck:
4345
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/"]
4446
interval: 30s

compas/keycloak/Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44

5-
FROM bitnami/keycloak:latest
5+
FROM quay.io/keycloak/keycloak:latest
66

77
ARG COMPAS_HOSTNAME
88

@@ -11,11 +11,7 @@ COPY --chown=keycloak:keycloak keycloak_compas_realm.json /tmp/keycloak_compas_r
1111
RUN sed -i "s/##COMPAS_HOSTNAME##/${COMPAS_HOSTNAME}/g" /tmp/keycloak_compas_realm.json
1212

1313
# Creating an Admin account
14-
ENV KEYCLOAK_ADMIN_USER admin
15-
ENV KEYCLOAK_ADMIN_PASSWORD admin
14+
ENV KC_DB_USERNAME admin
15+
ENV KC_DB_PASSWORD admin
1616

17-
# Choosing h2 database
18-
ENV KEYCLOAK_DATABASE_VENDOR "dev-file"
19-
20-
# Import the configuration we just copied
21-
ENV KEYCLOAK_EXTRA_ARGS "--import-realm"
17+
ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev", "--import-realm"]

0 commit comments

Comments
 (0)