initial commit

This commit is contained in:
Micael Silva
2025-07-03 22:05:27 -03:00
commit 842cf4b347
3 changed files with 35 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM quay.io/keycloak/keycloak@sha256:4883630ef9db14031cde3e60700c9a9a8eaf1b5c24db1589d6a2d43de38ba2a9 AS builder
# Enable health and metrics support
ENV KC_HEALTH_ENABLED=true
ENV KC_METRICS_ENABLED=true
# Configure a database vendor
ENV KC_DB=postgres
WORKDIR /opt/keycloak
RUN /opt/keycloak/bin/kc.sh build
FROM quay.io/keycloak/keycloak@sha256:4883630ef9db14031cde3e60700c9a9a8eaf1b5c24db1589d6a2d43de38ba2a9
COPY --from=builder /opt/keycloak/ /opt/keycloak/
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"]

18
docker-compose.yaml Normal file
View File

@@ -0,0 +1,18 @@
services:
keycloak:
image: nt_keycloak
pull_policy: never
container_name: keycloak
command: start --optimized
networks:
- infra
restart: "no" # unless-stopped
# ports:
# - "9090:9090" # Expondo a porta do Keycloak no host
# - "8443:8443"
env_file:
./.env
networks:
infra:
external: true