Skip to content

Commit

Permalink
- adds keycloak service to project (with example config - not fully t…
Browse files Browse the repository at this point in the history
…ested)

- adds commented version of future solution (based on a new authentication
  backen, without new models/cache nor improvement
- leftovers to be removed once testing suite is (at least partially) complete

Ref: #71
  • Loading branch information
oliveratfoodcoopx committed Nov 16, 2022
1 parent 1570f84 commit 4066b1c
Show file tree
Hide file tree
Showing 11 changed files with 3,910 additions and 1,956 deletions.
7 changes: 5 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
version: "3.9"
services:
keycloak_server:
keycloak-server:
build:
context: ./docker/keycloak
dockerfile: Dockerfile

ports:
- "8080:8080"

volumes:
- ./docker/keycloak/import:/opt/keycloak/data/import

environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
Expand Down Expand Up @@ -40,7 +43,7 @@ services:
- openldap
- db
- selenium
- keycloak_server
- keycloak-server

nginx-proxy:
image: jwilder/nginx-proxy
Expand Down
7 changes: 6 additions & 1 deletion docker/keycloak/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ FROM quay.io/keycloak/keycloak:20.0.1

COPY ./import/*.json /opt/keycloak/data/import/

RUN /opt/keycloak/bin/kc.sh import --dir /opt/keycloak/data/import
#RUN /opt/keycloak/bin/kc.sh import --dir /opt/keycloak/data/import -Dkeycloak.profile.feature.upload_scripts=enabled
RUN /opt/keycloak/bin/kc.sh import --dir /opt/keycloak/data/import

ENV ROOT_LOGLEVEL=ALL

ENV KEYCLOAK_LOGLEVEL=DEBUG

CMD ["start-dev"]
Loading

0 comments on commit 4066b1c

Please sign in to comment.