mirror of
https://github.com/paralus/paralus.git
synced 2026-02-14 09:39:50 +00:00
* created new migrations for null values Signed-off-by: zyncc <chandankrishna288@gmail.com> * fixed not null constraint for sentry_bootstrap_infra Signed-off-by: zyncc <chandankrishna288@gmail.com> * migrations not being applied Signed-off-by: zyncc <chandankrishna288@gmail.com> * added default values to all not null columns Signed-off-by: zyncc <chandankrishna288@gmail.com> * changes to kratos client api Signed-off-by: zyncc <chandankrishna288@gmail.com> * fixed casbin entries not showing in database Signed-off-by: zyncc <chandankrishna288@gmail.com> * . Signed-off-by: zyncc <chandankrishna288@gmail.com> * fixed create / upsert mismatch Signed-off-by: zyncc <chandankrishna288@gmail.com> * . Signed-off-by: zyncc <chandankrishna288@gmail.com> * . Signed-off-by: zyncc <chandankrishna288@gmail.com> * . Signed-off-by: zyncc <chandankrishna288@gmail.com> * . Signed-off-by: zyncc <chandankrishna288@gmail.com> * created one sql migration file Signed-off-by: zyncc <chandankrishna288@gmail.com> * . Signed-off-by: zyncc <chandankrishna288@gmail.com> * fixed CVE Vulnerability for golang and golang.org/x/oauth2 Signed-off-by: zyncc <chandankrishna288@gmail.com> * changed go version to 1.25.5 Signed-off-by: zyncc <chandankrishna288@gmail.com> * updated golangct-lint version to v2.6 Signed-off-by: zyncc <chandankrishna288@gmail.com> * golang-ci version Signed-off-by: zyncc <chandankrishna288@gmail.com> * added version to golang-ci.yaml Signed-off-by: zyncc <chandankrishna288@gmail.com> * fixed golangci config Signed-off-by: zyncc <chandankrishna288@gmail.com> --------- Signed-off-by: zyncc <chandankrishna288@gmail.com>
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
services:
|
|
postgresd:
|
|
image: postgres:14.2
|
|
container_name: paralus_postgres_14
|
|
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
|
|
depends_on:
|
|
- postgresd
|
|
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:
|