diff --git a/docker-compose.yml b/docker-compose.yml index 53fa7380b..908b5ef90 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,4 @@ +name: e2e version: '3.8' x-common-variables: &common-variables @@ -11,17 +12,18 @@ services: keycloak-nodes: image: keycloak:latest deploy: - replicas: 1 + replicas: 2 endpoint_mode: dnsrr build: context: . dockerfile: ./local/keycloak/Dockerfile depends_on: - kong-db - command: [ + command: + [ 'start', '--optimized', - #'--cache=ispn', + '--cache=ispn', '--hostname', 'http://keycloak.localtest.me:9081/auth', '--db-url', diff --git a/local/keycloak/Dockerfile b/local/keycloak/Dockerfile index 6c50e7066..93e4239e9 100644 --- a/local/keycloak/Dockerfile +++ b/local/keycloak/Dockerfile @@ -1,9 +1,9 @@ -FROM quay.io/keycloak/keycloak:26.0.6 as builder +FROM quay.io/keycloak/keycloak:nightly as builder ENV KC_DB=postgres RUN /opt/keycloak/bin/kc.sh build --http-relative-path=/auth -FROM quay.io/keycloak/keycloak:26.0.6 +FROM quay.io/keycloak/keycloak:nightly COPY --from=builder /opt/keycloak/ /opt/keycloak/ WORKDIR /opt/keycloak ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] diff --git a/local/keycloak/nginx-lb.conf b/local/keycloak/nginx-lb.conf index e959154fe..100419cc2 100644 --- a/local/keycloak/nginx-lb.conf +++ b/local/keycloak/nginx-lb.conf @@ -1,6 +1,6 @@ upstream backend { - server api-services-portal-keycloak-nodes-1:9081; - # server api-services-portal-keycloak-nodes-2:9081; + server e2e-keycloak-nodes-1:9081; + server e2e-keycloak-nodes-2:9081; } server {