Files
paralus/docker-compose.yml
T
Akshay GaikwadandGitHub c4ac043b5e feat: Support more than one IdP groups mapping (#172)
Allow mapping more than one IdP groups to an OIdC identity. This
commit upgrades the kratos version (v0.11.0). Kratos v0.11.0 parses
all id token claims into `raw_claims`. The `raw_claims` can be used in
JsonNet mapper to map non-standard claims like `groups` to identity
traits.

Fixes #109

This also includes:
* Remove verbose bug debug logs
* Removes elasticsearch service from docker compose file

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
2023-03-30 12:43:57 +05:30

64 lines
1.7 KiB
YAML

version: '3.7'
services:
postgresd:
image: postgres:13.4
container_name: paralus_postgres_13
ports:
- "$DB_PORT:$DB_PORT"
volumes:
- paralus_db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: $DB_USER
POSTGRES_DB: $DB_NAME
POSTGRES_PASSWORD: $DB_PASSWORD
kratos-migrate:
image: oryd/kratos:v0.11.0
environment:
- DSN=postgres://$DB_USER:$DB_PASSWORD@postgresd:$DB_PORT/$DB_NAME?sslmode=disable&max_conns=20&max_idle_conns=4
volumes:
- type: bind
source: ./_kratos
target: /etc/config/kratos
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
restart: on-failure
migrate-admindb:
depends_on:
kratos-migrate:
condition: service_completed_successfully
image: migrate/migrate:v4.15.1
restart: on-failure
command: -path=/migrations/admindb -database postgres://$DB_USER:$DB_PASSWORD@postgresd:$DB_PORT/$DB_NAME?sslmode=disable up
volumes:
- type: bind
source: ./persistence/migrations/admindb
target: /migrations/admindb
kratos:
depends_on:
- kratos-migrate
image: oryd/kratos:v0.11.0
ports:
- '4433:4433' # public
- '4434:4434' # admin
environment:
- DSN=postgres://$DB_USER:$DB_PASSWORD@postgresd:$DB_PORT/$DB_NAME?sslmode=disable&max_conns=20&max_idle_conns=4
- LOG_LEVEL=trace
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
volumes:
- type: bind
source: ./_kratos
target: /etc/config/kratos
mailslurper:
image: oryd/mailslurper:latest-smtps
ports:
- '4436:4436'
- '4437:4437'
volumes:
paralus_db_data:
paralus_es_data: