forked from lukin/keywind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 915 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (14 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This Dockerfile is only intended to run a local preview of the theme
# See the README for a Dockerfile that would be better suited to using in production
FROM quay.io/keycloak/keycloak:latest AS base
ENV KEYCLOAK_ADMIN=admin
ENV KEYCLOAK_ADMIN_PASSWORD=admin
# Recommended. Allows you to save configuration between restarts so you don't have to keep reselecting the theme
# Install postgres on macOS with: brew install postgresql@17
# Then run: psql -U postgres -c 'create database "bluedot-keycloak-theme";'
ENV KC_DB=postgres
# If you're running into JDBC connection issues, try replacing "host.docker.internal" with the IP returned by `ip route get 1.1.1.1` from colima
ENV KC_DB_URL=jdbc:postgresql://host.docker.internal:5432/bluedot-keycloak-theme?user=postgres&password=postgres
COPY ./dist/bluedot-keycloak-theme.jar /opt/keycloak/providers
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]
CMD [ "start-dev" ]