Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#71: Keycloak Integration #160

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading