#!/usr/bin/env bash
|
|
docker build -t jce-keycloak .
|
|
|
|
docker stop jce-keycloak || true
|
|
|
|
docker run --rm -it -d \
|
|
-p 8080:8080 \
|
|
-e KEYCLOAK_USER=admin \
|
|
-e KEYCLOAK_PASSWORD=admin \
|
|
-e DB_VENDOR=postgres \
|
|
-e DB_ADDR=host.docker.internal \
|
|
-e DB_DATABASE=keycloak \
|
|
-e DB_USER=keycloak \
|
|
-e DB_PASSWORD=keycloak \
|
|
--name jce-keycloak \
|
|
jce-keycloak
|