Skip to content

Commit

Permalink
chore: update keycloak in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukinhasssss committed Apr 10, 2024
1 parent 7d78eec commit 3c66ea7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sandbox/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ docker compose -f services/docker-compose.yml up -d
docker compose -f elk/docker-compose.yml up -d
docker compose -f monitoramento/docker-compose.yml up -d
docker compose -f open-telemetry/docker-compose.yml up -d
docker compose -f app/docker-compose.yml up -d --build --force-recreate
#docker compose -f app/docker-compose.yml up -d
#docker compose -f app/docker-compose.yml up -d --build --force-recreate
docker compose -f app/docker-compose.yml up -d
26 changes: 24 additions & 2 deletions sandbox/services/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ services:

keycloak-admin-do-catalogo:
container_name: keycloak-admin-do-catalogo
image: quay.io/keycloak/keycloak:24.0.2
image: quay.io/keycloak/keycloak:latest
hostname: keycloak.internal
ports:
- "8443:8080"
Expand All @@ -58,11 +58,32 @@ services:
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_HOSTNAME=keycloak.internal
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres_keycloak_admin_do_catalogo:5432/keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=password
volumes:
- keycloak-admin-do-catalogo:/opt/keycloak/data/
command:
# - start-dev # Deve ser utilizado quando a aplicação estiver rodando fora de um container
- start-dev --hostname-url=http://keycloak.internal:8443 # Deve ser utilizado quando a aplicação estiver rodando dentro de um container
# - start-dev --hostname-url=http://keycloak.internal:8443 # Deve ser utilizado quando a aplicação estiver rodando dentro de um container
- start-dev
networks:
- admin-do-catalogo-services

postgres_keycloak_admin_do_catalogo:
container_name: postgres_keycloak_admin_do_catalogo
image: postgres:latest
restart: unless-stopped
ports:
- "5434:5432"
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
volumes:
- postgresql-keycloak-admin-do-catalogo:/var/lib/postgresql/data
networks:
- admin-do-catalogo-services

Expand All @@ -73,6 +94,7 @@ volumes:
external: true
keycloak-admin-do-catalogo:
external: true
postgresql-keycloak-admin-do-catalogo:

networks:
admin-do-catalogo-services:
Expand Down

0 comments on commit 3c66ea7

Please sign in to comment.