Skip to content

Commit

Permalink
#71: Keycloak Integration (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveratfoodcoopx committed Feb 16, 2023
1 parent d9d687b commit 78d8891
Show file tree
Hide file tree
Showing 135 changed files with 4,667 additions and 3,538 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10
FROM python:3.11
ARG TAPIR_VERSION
ENV TAPIR_VERSION=$TAPIR_VERSION
ENV PYTHONUNBUFFERED=1
Expand Down
22 changes: 10 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
version: "3.9"
services:
openldap:
image: "osixia/openldap"
environment:
LDAP_ORGANISATION: "WirGarten Lüneburg"
LDAP_DOMAIN: "lueneburg.wirgarten.com"
LDAP_ADMIN_PASSWORD: "admin"
LDAP_READONLY_USER: "true"
keycloak:
build:
context: ./docker/keycloak
dockerfile: Dockerfile
ports:
- "389:389"
- "8080:8080"
volumes:
- ./ldap_testdata.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-testdata.ldif
# Required so that the container doesn't modify the testdata ldif
command: --copy-service
- ./docker/keycloak/import:/opt/keycloak/data/import
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin

web:
build: .
Expand All @@ -25,9 +23,9 @@ services:
VIRTUAL_HOST: localhost
DEBUG: 1
depends_on:
- openldap
- db
- selenium
- keycloak

nginx-proxy:
image: jwilder/nginx-proxy
Expand Down
1 change: 1 addition & 0 deletions docker/keycloak/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
10 changes: 10 additions & 0 deletions docker/keycloak/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM quay.io/keycloak/keycloak:20.0.3

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

RUN /opt/keycloak/bin/kc.sh import --dir /opt/keycloak/data/import

ENV ROOT_LOGLEVEL=ALL
ENV KEYCLOAK_LOGLEVEL=ALL

CMD ["start-dev"]

0 comments on commit 78d8891

Please sign in to comment.