Skip to content

Commit 0f787aa

Browse files
committed
Improves docker compose for testing
Signed-off-by: Sebastian Kawelke <sebastian.kawelke@l3montree.com>
1 parent 79e8e2f commit 0f787aa

2 files changed

Lines changed: 117 additions & 4 deletions

File tree

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
version: v0.13.0
2+
3+
dsn: memory
4+
5+
session:
6+
cookie:
7+
name: ory_kratos_session
8+
9+
serve:
10+
public:
11+
base_url: http://localhost:4433/
12+
cors:
13+
enabled: true
14+
admin:
15+
base_url: http://localhost:4434/
16+
17+
selfservice:
18+
default_browser_return_url: http://localhost:3000/
19+
allowed_return_urls:
20+
- http://localhost:3000
21+
methods:
22+
password:
23+
enabled: true
24+
totp:
25+
config:
26+
issuer: Kratos
27+
enabled: true
28+
lookup_secret:
29+
enabled: true
30+
link:
31+
enabled: true
32+
code:
33+
enabled: true
34+
passkey:
35+
enabled: true
36+
config:
37+
rp:
38+
# This MUST be your root domain (not a subdomain)
39+
id: localhost:3000
40+
# This MUST be the exact URL of the page which will prompt for WebAuthn!
41+
# Only the scheme (https / http), host (auth.example.org), and port (4455) are relevant. The
42+
# path is irrelevant.
43+
origins:
44+
- http://localhost:3000
45+
# A display name which will be shown to the user on her/his device.
46+
display_name: DevGuard
47+
flows:
48+
error:
49+
ui_url: http://localhost:3000/error
50+
51+
settings:
52+
ui_url: http://localhost:3000/user-settings
53+
privileged_session_max_age: 15m
54+
required_aal: highest_available
55+
56+
recovery:
57+
enabled: true
58+
ui_url: http://localhost:3000/recovery
59+
use: code
60+
61+
verification:
62+
enabled: true
63+
ui_url: http://localhost:3000/verification
64+
use: code
65+
after:
66+
default_browser_return_url: http://localhost:3000/
67+
68+
logout:
69+
after:
70+
default_browser_return_url: http://localhost:3000/login
71+
72+
login:
73+
ui_url: http://localhost:3000/login
74+
lifespan: 10m
75+
76+
registration:
77+
lifespan: 10m
78+
ui_url: http://localhost:3000/registration
79+
after:
80+
password:
81+
hooks:
82+
- hook: session
83+
84+
log:
85+
level: debug
86+
format: text
87+
leak_sensitive_values: true
88+
89+
secrets:
90+
cookie:
91+
- PLEASE-CHANGE-ME-I-AM-VERY-INSECURE
92+
cipher:
93+
- 32-LONG-SECRET-NOT-SECURE-AT-ALL
94+
95+
ciphers:
96+
algorithm: xchacha20-poly1305
97+
98+
hashers:
99+
algorithm: bcrypt
100+
bcrypt:
101+
cost: 8
102+
103+
identity:
104+
default_schema_id: default
105+
schemas:
106+
- id: default
107+
url: file:///etc/config/kratos/identity.schema.json
108+
109+
courier:
110+
smtp:
111+
connection_uri: smtps://test:test@mailslurper:1025/?skip_ssl_verify=true
112+
from_address: noreply@devguard.org
113+
from_name: DevGuard

docker-compose-try-it.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
condition: service_healthy
2727
volumes:
2828
- type: bind
29-
source: ./.kratos
29+
source: ./kratos
3030
target: /etc/config/kratos
3131
environment:
3232
- DSN=postgres://kratos:secret@postgresql:5432/kratos?sslmode=disable
@@ -43,7 +43,7 @@ services:
4343
volumes:
4444
- type: bind
4545
read_only: true
46-
source: ./.kratos
46+
source: ./kratos
4747
target: /etc/config/kratos
4848
ports:
4949
- "4433:4433" # Public
@@ -66,8 +66,8 @@ services:
6666
- "8080:8080"
6767
environment:
6868
- DATABASE_URL=postgresql://postgres:password@postgresql:5432/devguard
69-
- KRATOS_PUBLIC_URL=http://kratos:4433
70-
- KRATOS_ADMIN_URL=http://kratos:4434
69+
- ORY_KRATOS_PUBLIC=http://kratos:4433
70+
- ORY_KRATOS_ADMIN=http://kratos:4434
7171
- LOG_LEVEL=debug
7272
- INSTANCE_DOMAIN=http://localhost:8080
7373
- FRONTEND_URL=http://localhost:3000

0 commit comments

Comments
 (0)