-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
237 lines (222 loc) · 6.38 KB
/
docker-compose.yml
File metadata and controls
237 lines (222 loc) · 6.38 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
version: "3.7"
services:
database:
image: postgres:15.2
restart: on-failure
environment:
POSTGRES_MULTIPLE_DATABASES: kratos,keto,hydra
POSTGRES_PASSWORD: dbpassword
POSTGRES_USER: dbuser
volumes:
- ./configs/postgresql/create-multiple-postgresql-databases.sh:/docker-entrypoint-initdb.d/create-multiple-postgresql-databases.sh
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
intranet: null
kratos-migrate:
depends_on:
- database
image: oryd/kratos:v0.13.0
restart: on-failure
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
environment:
DSN: postgres://dbuser:dbpassword@database:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
volumes:
- kratos-config:/etc/config/kratos
networks:
intranet: null
keto-migrate:
depends_on:
- database
image: oryd/keto:v0.11.1
restart: on-failure
command: migrate up -y
environment:
DSN: postgres://dbuser:dbpassword@database:5432/keto?sslmode=disable
LOG_LEVEL: debug
links:
- database:database
volumes:
- keto-config:/home/ory
networks:
intranet: null
hydra-migrate:
depends_on:
- database
image: oryd/hydra:v2.1.1
restart: on-failure
command: migrate -c /etc/config/hydra/hydra.yml sql -e --yes
environment:
DSN: postgres://dbuser:dbpassword@database:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
volumes:
- hydra-config:/etc/config/hydra
networks:
intranet: null
hydra:
depends_on:
hydra-migrate:
condition: service_started
jaeger:
condition: service_started
image: oryd/hydra:v2.1.1
restart: unless-stopped
command: serve -c /etc/config/hydra/hydra.yml all --dev
environment:
DSN: postgres://dbuser:dbpassword@database:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
TRACING_PROVIDER: jaeger
TRACING_SERVICE_NAME: Hydra
TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS: jaeger:6831
TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL: http://jaeger:5778/sampling
TRACING_PROVIDERS_JAEGER_SAMPLING_TRACE_ID_RATIO: "1"
volumes:
- hydra-config:/etc/config/hydra
ports:
- "4444:4444"
- "4445:4445"
- "5555:5555"
networks:
intranet: null
keto:
depends_on:
jaeger:
condition: service_started
keto-migrate:
condition: service_started
image: oryd/keto:v0.11.1
restart: on-failure
command: serve -c /home/ory/keto.yml
environment:
DSN: postgres://dbuser:dbpassword@database:5432/keto?sslmode=disable
TRACING_PROVIDER: jaeger
TRACING_SERVICE_NAME: Keto
TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS: jaeger:6831
TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL: http://jaeger:5778/sampling
links:
- database:database
volumes:
- keto-config:/home/ory
ports:
- "4466:4466"
- "4467:4467"
networks:
intranet: null
kratos:
depends_on:
jaeger:
condition: service_started
kratos-migrate:
condition: service_started
image: oryd/kratos:v0.13.0
restart: unless-stopped
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
environment:
DSN: postgres://dbuser:dbpassword@database:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
LOG_LEVEL: trace
SERVE_PUBLIC_BASE_URL: http://127.0.0.1:4455/.ory/kratos/public/
TRACING_PROVIDER: jaeger
TRACING_SERVICE_NAME: Kratos
TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS: jaeger:6831
TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL: http://jaeger:5778/sampling
volumes:
- kratos-config:/etc/config/kratos
ports:
- "4433:4433"
- "4434:4434"
networks:
intranet: null
kratos-selfservice-ui-node:
image: oryd/kratos-selfservice-ui-node:v0.13.0
restart: on-failure
environment:
JWKS_URL: http://oathkeeper:4456/.well-known/jwks.json
KRATOS_BROWSER_URL: http://127.0.0.1:4455/.ory/kratos/public
KRATOS_PUBLIC_URL: http://kratos:4433/
PORT: '4435'
SECURITY_MODE: jwks
networks:
intranet: null
oathkeeper:
depends_on:
kratos:
condition: service_started
image: oryd/oathkeeper:v0.40.2
restart: on-failure
command: serve proxy -c /etc/config/oathkeeper/oathkeeper.yml
environment:
LOG_LEVEL: debug
LOG_LEAK_SENSITIVE_VALUES: "true"
TRACING_PROVIDER: jaeger
TRACING_SERVICE_NAME: Oathkeeper
TRACING_PROVIDERS_JAEGER_SAMPLING_SERVER_URL: http://jaeger:5778/sampling
TRACING_PROVIDERS_JAEGER_LOCAL_AGENT_ADDRESS: jaeger:6831
TRACING_PROVIDERS_JAEGER_SAMPLING_TYPE: const
TRACING_PROVIDERS_JAEGER_SAMPLING_VALUE: 1
ports:
- "4455:4455"
- "4456:4456"
volumes:
- oathkeeper-config:/etc/config/oathkeeper
networks:
intranet: null
consent:
image: oryd/hydra-login-consent-node:v2.1.1
restart: unless-stopped
environment:
HYDRA_ADMIN_URL: http://hydra:4445
ports:
- "3000:3000"
networks:
intranet: null
mailslurper:
image: oryd/mailslurper:latest-smtps
ports:
- "4436:4436"
- "4437:4437"
networks:
intranet: null
jaeger:
image: jaegertracing/all-in-one:1.44
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "9411:9411"
networks:
intranet: null
networks:
intranet:
name: ory_intranet
volumes:
postgres-data:
hydra-config:
name: ory_hydra-config
driver: local
driver_opts:
device: ./configs/hydra
o: bind
type: none
keto-config:
name: ory_keto-config
driver: local
driver_opts:
device: ./configs/keto
o: bind
type: none
kratos-config:
name: ory_kratos-config
driver: local
driver_opts:
device: ./configs/kratos/email-password
o: bind
type: none
oathkeeper-config:
name: ory_oathkeeper-config
driver: local
driver_opts:
device: ./configs/oathkeeper
o: bind
type: none