-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
67 lines (62 loc) · 1.88 KB
/
Copy pathcompose.yml
File metadata and controls
67 lines (62 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/data
- ./dev/postgres/initdb.sql:/docker-entrypoint-initdb.d/initdb.sql:ro
expose:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
kratos-migrate:
image: oryd/kratos:v1.3.1
command: migrate sql -e --yes
environment:
- DSN=postgres://kratos:kratos@postgres:5432/kratos?sslmode=disable
- SECRETS_CIPHER_0=abcdefghijklmnopqrstuvwxyzABCDEF
- SECRETS_COOKIE_0=abcdefghijklmnopqrstuvwxyzABCDEF
- SECRETS_DFEAULT_0=abcdefghijklmnopqrstuvwxyzABCDEF
depends_on:
postgres:
condition: service_healthy
restart: on-failure
kratos:
image: oryd/kratos:v1.3.1
command: serve all --dev --watch-courier -c /etc/kratos/kratos.yml
environment:
- DSN=postgres://kratos:kratos@postgres:5432/kratos?sslmode=disable
- SECRETS_CIPHER_0=abcdefghijklmnopqrstuvwxyzABCDEF
- SECRETS_COOKIE_0=abcdefghijklmnopqrstuvwxyzABCDEF
- SECRETS_DFEAULT_0=abcdefghijklmnopqrstuvwxyzABCDEF
volumes:
- ./dev/kratos.yml:/etc/kratos/kratos.yml:ro
ports:
- "14433:4433"
depends_on:
kratos-migrate:
condition: service_completed_successfully
oathkeeper:
image: oryd/oathkeeper:v0.40.9
command: serve proxy -c /etc/oathkeeper/oathkeeper.yml
volumes:
- ./dev/oathkeeper.yml:/etc/oathkeeper/oathkeeper.yml:ro
- ./dev/access-rules.yml:/etc/oathkeeper/access-rules.yml:ro
ports:
- "14455:4455"
- "24455:4455"
- "34455:4455"
extra_hosts:
- host.docker.internal:host-gateway
mailslurper:
image: oryd/mailslurper:latest-smtps
ports:
- "4436:4436"
- "4437:4437"
volumes:
postgres: