Switch to Cockroach DB for Kratos.
Use login.siasky.net as login server.
This commit is contained in:
parent
f08a276a7a
commit
9d42dda0a6
|
@ -15,6 +15,7 @@ networks:
|
|||
|
||||
volumes:
|
||||
webapp:
|
||||
kratos-sqlite:
|
||||
|
||||
services:
|
||||
sia:
|
||||
|
@ -178,10 +179,10 @@ services:
|
|||
kratos-migrate:
|
||||
image: oryd/kratos:v0.5.4-alpha.1
|
||||
container_name: kratos-migrate
|
||||
restart: unless-stopped
|
||||
restart: on-failure
|
||||
logging: *default-logging
|
||||
environment:
|
||||
- DSN=mysql://root:${MYSQL_ROOT_PASSWORD}@tcp(mysqld:3306)/mysql?max_conns=20&max_idle_conns=4
|
||||
- DSN=cockroach://root@cockroachd:26257/defaultdb?sslmode=disable&max_conns=20&max_idle_conns=4
|
||||
volumes:
|
||||
- ./docker/kratos/config:/etc/config/kratos
|
||||
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
|
||||
|
@ -198,7 +199,7 @@ services:
|
|||
- 4433 # public
|
||||
- 4434 # admin
|
||||
environment:
|
||||
- DSN=mysql://root:${MYSQL_ROOT_PASSWORD}@tcp(mysqld:3306)/mysql?max_conns=20&max_idle_conns=4
|
||||
- DSN=cockroach://root@cockroachd:26257/defaultdb?sslmode=disable&max_conns=20&max_idle_conns=4
|
||||
- LOG_LEVEL=trace
|
||||
command: serve -c /etc/config/kratos/kratos.yml
|
||||
volumes:
|
||||
|
@ -219,21 +220,20 @@ services:
|
|||
environment:
|
||||
- PORT=4455
|
||||
- SECURITY_MODE=
|
||||
- BASE_URL=https://${DOMAIN_NAME}/secure/
|
||||
- KRATOS_BROWSER_URL=https://${DOMAIN_NAME}/secure/
|
||||
- BASE_URL=https://login.siasky.net/secure/
|
||||
- KRATOS_BROWSER_URL=https://login.siasky.net/secure/
|
||||
- KRATOS_PUBLIC_URL=http://kratos:4433/
|
||||
- KRATOS_ADMIN_URL=http://kratos:4434/
|
||||
networks:
|
||||
shared:
|
||||
ipv4_address: 10.10.10.82
|
||||
|
||||
mysqld:
|
||||
image: mysql:5.7
|
||||
container_name: mysqld
|
||||
cockroachd:
|
||||
image: cockroachdb/cockroach:v20.1.0
|
||||
container_name: cockroachd
|
||||
command: start --insecure
|
||||
expose:
|
||||
- 3306
|
||||
env_file:
|
||||
- .env
|
||||
- 26257
|
||||
networks:
|
||||
shared:
|
||||
ipv4_address: 10.10.10.90
|
||||
|
|
|
@ -4,16 +4,16 @@ dsn: memory
|
|||
|
||||
serve:
|
||||
public:
|
||||
base_url: https://siasky.net/secure/
|
||||
base_url: https://login.siasky.net/secure/
|
||||
cors:
|
||||
enabled: true
|
||||
admin:
|
||||
base_url: https://siasky.net/admin/
|
||||
base_url: https://login.siasky.net/admin/
|
||||
|
||||
selfservice:
|
||||
default_browser_return_url: https://siasky.net/secure/
|
||||
default_browser_return_url: https://login.siasky.net/secure/
|
||||
whitelisted_return_urls:
|
||||
- https://siasky.net/secure
|
||||
- https://login.siasky.net/secure
|
||||
|
||||
methods:
|
||||
password:
|
||||
|
@ -21,33 +21,33 @@ selfservice:
|
|||
|
||||
flows:
|
||||
error:
|
||||
ui_url: https://siasky.net/secure/error
|
||||
ui_url: https://login.siasky.net/secure/error
|
||||
|
||||
settings:
|
||||
ui_url: https://siasky.net/secure/settings
|
||||
ui_url: https://login.siasky.net/secure/settings
|
||||
privileged_session_max_age: 15m
|
||||
|
||||
recovery:
|
||||
enabled: true
|
||||
ui_url: https://siasky.net/secure/recovery
|
||||
ui_url: https://login.siasky.net/secure/recovery
|
||||
|
||||
verification:
|
||||
enabled: true
|
||||
ui_url: https://siasky.net/secure/verify
|
||||
ui_url: https://login.siasky.net/secure/verify
|
||||
after:
|
||||
default_browser_return_url: https://siasky.net/secure/
|
||||
default_browser_return_url: https://login.siasky.net/secure/
|
||||
|
||||
logout:
|
||||
after:
|
||||
default_browser_return_url: https://siasky.net/secure/auth/login
|
||||
default_browser_return_url: https://login.siasky.net/secure/auth/login
|
||||
|
||||
login:
|
||||
ui_url: https://siasky.net/secure/auth/login
|
||||
ui_url: https://login.siasky.net/secure/auth/login
|
||||
lifespan: 10m
|
||||
|
||||
registration:
|
||||
lifespan: 10m
|
||||
ui_url: https://siasky.net/secure/auth/registration
|
||||
ui_url: https://login.siasky.net/secure/auth/registration
|
||||
after:
|
||||
password:
|
||||
hooks:
|
||||
|
|
Reference in New Issue