Add neo-brutalist Keycloak login theme 'ecosplay'
- Custom theme under themes/ecosplay/login (extends keycloak parent) with template.ftl and login.ftl matching the e-cosplay.fr style: thick black borders, hard offset shadows, italic uppercase, indigo accent, hover translate effect, marquee header, watermark. - Tailwind via Play CDN for utility classes (no build step). - Mount the theme dir read-only into the Keycloak container. - Init container now also sets loginTheme=ecosplay on master realm alongside the SMTP config; service renamed keycloak-init. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -35,15 +35,17 @@ services:
|
||||
KEYCLOAK_ADMIN_PASSWORD: admin
|
||||
ports:
|
||||
- "9450:8080"
|
||||
volumes:
|
||||
- ./themes/ecosplay:/opt/keycloak/themes/ecosplay:ro
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- keycloak-net
|
||||
|
||||
keycloak-smtp-init:
|
||||
keycloak-init:
|
||||
image: quay.io/keycloak/keycloak:26.0
|
||||
container_name: ecosplay-auth-smtp-init
|
||||
container_name: ecosplay-auth-init
|
||||
depends_on:
|
||||
keycloak:
|
||||
condition: service_started
|
||||
@@ -57,6 +59,7 @@ services:
|
||||
SMTP_FROM_DISPLAY_NAME: E-Cosplay
|
||||
SMTP_USER: AKIAWTT2T22CWBRBBDYN
|
||||
SMTP_PASSWORD: BBdgb6KxRQ8mNcpWFJsZCJxbSGNdgLhKFiITMErfBlQP
|
||||
LOGIN_THEME: ecosplay
|
||||
entrypoint: ["/bin/bash", "-c"]
|
||||
command:
|
||||
- |
|
||||
@@ -69,7 +72,7 @@ services:
|
||||
echo "Waiting for Keycloak to be ready..."
|
||||
sleep 5
|
||||
done
|
||||
echo "Keycloak ready, configuring SMTP on master realm..."
|
||||
echo "Keycloak ready, configuring master realm (SMTP + theme)..."
|
||||
/opt/keycloak/bin/kcadm.sh update realms/master \
|
||||
-s "smtpServer.host=$$SMTP_HOST" \
|
||||
-s "smtpServer.port=$$SMTP_PORT" \
|
||||
@@ -79,8 +82,9 @@ services:
|
||||
-s "smtpServer.starttls=true" \
|
||||
-s "smtpServer.ssl=false" \
|
||||
-s "smtpServer.user=$$SMTP_USER" \
|
||||
-s "smtpServer.password=$$SMTP_PASSWORD"
|
||||
echo "SMTP configuration applied to master realm."
|
||||
-s "smtpServer.password=$$SMTP_PASSWORD" \
|
||||
-s "loginTheme=$$LOGIN_THEME"
|
||||
echo "Master realm configured."
|
||||
networks:
|
||||
- keycloak-net
|
||||
restart: "no"
|
||||
|
||||
Reference in New Issue
Block a user