Skip to content

Commit

Permalink
feat: update kratos to v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
atreya2011 committed Aug 13, 2023
1 parent cd6d806 commit b881bac
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 390 deletions.
5 changes: 4 additions & 1 deletion config/kratos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v0.10.1
version: v1.0.0

dsn: postgres://auth:secret@auth-db:5432/auth?sslmode=disable&max_conns=20&max_idle_conns=4

Expand Down Expand Up @@ -35,6 +35,9 @@ selfservice:
recovery:
enabled: true
ui_url: http://localhost:4455/recovery
after:
hooks:
- hook: revoke_active_sessions

verification:
enabled: true
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

version: '3.7'
version: '3.8'

networks:
intranet:
Expand All @@ -10,7 +10,7 @@ services:
depends_on:
- auth-db
container_name: kratos-migrate
image: oryd/kratos:v0.10.1
image: oryd/kratos:v1.0.0
# to run db migrations we use the kratos-cli but don't need to mount the config directory
# as we only require the DSN to be set as the environment variable for running the migrations
environment:
Expand All @@ -23,7 +23,7 @@ services:
container_name: kratos
depends_on:
- kratos-migrate
image: oryd/kratos:v0.10.1
image: oryd/kratos:v1.0.0
# watch-courier is set for sending verification/recovery emails
command: serve -c /etc/kratos/config/kratos.yml --dev --watch-courier
volumes:
Expand Down
12 changes: 6 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/atreya2011/kratos-test

go 1.17
go 1.20

require github.com/ory/kratos-client-go v0.10.1
require github.com/ory/client-go v1.1.35

require (
github.com/golang/protobuf v1.5.2 // indirect
golang.org/x/net v0.0.0-20220615171555-694bf12d69de // indirect
golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb // indirect
github.com/golang/protobuf v1.5.3 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)
Loading

0 comments on commit b881bac

Please sign in to comment.