version: '3'
volumes:
postgres_data:
driver: local
services:
kc_db:
container_name: kc_postgres
image: postgres:15.1-alpine
# volumes:
# - postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
ports:
- '${EXTERNAL_DB_PORT}:5432'
kc_app:
container_name: keycloak
image: quay.io/keycloak/keycloak:20.0.1
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://kc_db:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
# DB_SCHEMA: public
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
command: start-dev
ports:
- '${KC_PORT}:8080'
depends_on:
- kc_db
networks:
- bd_external
- default
networks:
bd_external:
external: true
Bearer realm="master", error="invalid_token", error_description="Token verification failed"
provider
jwt
looks like this error https://gist.github.com/des1roer/b7240dfcb299c7d91881f7908b92cbe8
response + request - https://gist.github.com/des1roer/b7240dfcb299c7d91881f7908b92cbe8
keycloack container
php container
client