Files
paralus/docker-compose.yml
Akshay Gaikwad 1f64d80729 Auto-generate password and force reset (#124)
* Upgrade kratos service to v0.10.1

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Upgrade kratos-client-go to v0.10.1

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* generate password feature for kratos admin creation

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Add forceReset property in user spec

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* added forcereset in the init script

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* Resolve conflicts

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* Stdout default admin password in initialize script

Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>

* setting password for new user and sending default password in create user response

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* added new endpoint to service force reset flag update after resetting complete outside authz

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>

* removed unnecessary overhead in the forcereset endpoint and updated user type proto to remove unused fields

Signed-off-by: mabhi <abhijit.mukherjee@infracloud.io>
2023-01-27 18:32:11 +05:30

75 lines
2.0 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
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0
container_name: paralus_elasticsearch_8
ports:
- '${ES_PORT:-9200}:9200'
volumes:
- paralus_es_data:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- xpack.security.enabled=false # disable auth for local dev
kratos-migrate:
image: oryd/kratos:v0.10.1
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.10.1
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: