-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.e2e.yaml
More file actions
221 lines (205 loc) · 6.1 KB
/
docker-compose.e2e.yaml
File metadata and controls
221 lines (205 loc) · 6.1 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
# MoltNet Docker Compose — E2E Testing
#
# Full stack (infra + apps) with ephemeral storage.
# Data is reset on every restart.
#
# Usage:
# COMPOSE_DISABLE_ENV_FILE=true docker compose -f docker-compose.e2e.yaml up -d --build
# COMPOSE_DISABLE_ENV_FILE=true docker compose -f docker-compose.e2e.yaml down -v
services:
app-db:
extends:
file: docker-compose.base.yaml
service: app-db
app-db-migrate:
extends:
file: docker-compose.base.yaml
service: app-db-migrate
depends_on:
app-db:
condition: service_healthy
restart: 'on-failure:3'
kratos-postgres:
extends:
file: docker-compose.base.yaml
service: kratos-postgres
kratos-migrate:
extends:
file: docker-compose.base.yaml
service: kratos-migrate
depends_on:
kratos-postgres:
condition: service_healthy
restart: 'on-failure:3'
kratos:
extends:
file: docker-compose.base.yaml
service: kratos
environment:
SELFSERVICE_FLOWS_VERIFICATION_ENABLED: 'true'
SELFSERVICE_FLOWS_REGISTRATION_AFTER_OIDC_HOOKS_0_CONFIG_URL: http://rest-api:8080/hooks/kratos/after-registration
SELFSERVICE_FLOWS_REGISTRATION_AFTER_PASSWORD_HOOKS_0_CONFIG_URL: http://rest-api:8080/hooks/kratos/after-registration
SELFSERVICE_FLOWS_LOGIN_AFTER_OIDC_HOOKS_0_CONFIG_URL: http://rest-api:8080/hooks/kratos/after-login
SELFSERVICE_FLOWS_LOGIN_AFTER_PASSWORD_HOOKS_0_CONFIG_URL: http://rest-api:8080/hooks/kratos/after-login
depends_on:
kratos-migrate:
condition: service_completed_successfully
mailslurper:
condition: service_started
kratos-selfservice-ui-node:
extends:
file: docker-compose.base.yaml
service: kratos-selfservice-ui-node
environment:
KRATOS_PUBLIC_URL: http://kratos:4433/
depends_on:
kratos:
condition: service_healthy
hydra-postgres:
extends:
file: docker-compose.base.yaml
service: hydra-postgres
hydra-migrate:
extends:
file: docker-compose.base.yaml
service: hydra-migrate
depends_on:
hydra-postgres:
condition: service_healthy
restart: 'on-failure:3'
hydra:
extends:
file: docker-compose.base.yaml
service: hydra
environment:
URLS_SELF_ISSUER: http://hydra:4444
URLS_SELF_PUBLIC: http://hydra:4444
depends_on:
hydra-migrate:
condition: service_completed_successfully
keto-postgres:
extends:
file: docker-compose.base.yaml
service: keto-postgres
keto-migrate:
extends:
file: docker-compose.base.yaml
service: keto-migrate
depends_on:
keto-postgres:
condition: service_healthy
restart: 'on-failure:3'
keto:
extends:
file: docker-compose.base.yaml
service: keto
depends_on:
keto-migrate:
condition: service_completed_successfully
mailslurper:
extends:
file: docker-compose.base.yaml
service: mailslurper
rest-api:
build:
context: .
dockerfile: apps/rest-api/Dockerfile
ports:
- '8080:8080'
environment:
NODE_ENV: production
PORT: '8080'
DATABASE_URL: postgresql://moltnet:moltnet_secret@app-db:5432/moltnet
DBOS_SYSTEM_DATABASE_URL: postgresql://moltnet:moltnet_secret@app-db:5432/moltnet?schema=dbos
ORY_KRATOS_PUBLIC_URL: http://kratos:4433
ORY_KRATOS_ADMIN_URL: http://kratos:4434
ORY_HYDRA_PUBLIC_URL: http://hydra:4444
ORY_HYDRA_ADMIN_URL: http://hydra:4445
ORY_KETO_PUBLIC_URL: http://keto:4466
ORY_KETO_ADMIN_URL: http://keto:4467
ORY_ACTION_API_KEY: local-dev-webhook-key
RECOVERY_CHALLENGE_SECRET: e2e-recovery-secret-for-hmac-signing
CORS_ORIGINS: 'http://localhost:5174,http://localhost:4433'
RATE_LIMIT_GLOBAL_AUTH: '10000'
RATE_LIMIT_GLOBAL_ANON: '10000'
RATE_LIMIT_EMBEDDING: '10000'
RATE_LIMIT_VOUCH: '10000'
RATE_LIMIT_SIGNING: '10000'
RATE_LIMIT_RECOVERY: '10000'
RATE_LIMIT_PUBLIC_VERIFY: '10000'
RATE_LIMIT_PUBLIC_SEARCH: '10000'
RATE_LIMIT_LEGREFFIER_START: '10000'
RATE_LIMIT_REGISTRATION: '10000'
# Injected by e2e globalSetup after bootstrapping a sponsor genesis agent.
# Empty by default — server starts cleanly (503 on /public/legreffier/start)
# until globalSetup restarts with SPONSOR_AGENT_ID set.
SPONSOR_AGENT_ID: ${SPONSOR_AGENT_ID:-}
depends_on:
app-db:
condition: service_healthy
app-db-migrate:
condition: service_completed_successfully
kratos:
condition: service_healthy
hydra:
condition: service_healthy
keto:
condition: service_healthy
healthcheck:
test:
[
'CMD',
'node',
'-e',
"fetch('http://localhost:8080/health').then(r=>r.ok?process.exit(0):process.exit(1)).catch(()=>process.exit(1))",
]
interval: 5s
timeout: 3s
retries: 15
start_period: 30s
console:
build:
context: .
dockerfile: apps/console/Dockerfile
ports:
- '5174:80'
environment:
KRATOS_PUBLIC_URL: http://localhost:4433
API_BASE_URL: http://localhost:8080
CONSOLE_BASE_URL: http://localhost:5174
depends_on:
rest-api:
condition: service_healthy
kratos:
condition: service_healthy
mcp-server:
build:
context: .
dockerfile: apps/mcp-server/Dockerfile
ports:
- '8001:8001'
environment:
NODE_ENV: production
PORT: '8001'
REST_API_URL: http://rest-api:8080
CONSOLE_BASE_URL: http://localhost:5174
AUTH_ENABLED: 'true'
ORY_PROJECT_URL: http://hydra:4444
CLIENT_CREDENTIALS_PROXY: 'true'
depends_on:
rest-api:
condition: service_healthy
hydra:
condition: service_healthy
healthcheck:
test:
[
'CMD',
'node',
'-e',
"fetch('http://localhost:8001/healthz').then(r=>r.ok?process.exit(0):process.exit(1)).catch(()=>process.exit(1))",
]
interval: 5s
timeout: 3s
retries: 15
start_period: 15s