-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
39 lines (36 loc) · 1.27 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
39 lines (36 loc) · 1.27 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
# Local Development Database Configuration
# WARNING: These credentials are for LOCAL DEVELOPMENT ONLY.
# Production deployments MUST use secure credentials managed through
# environment variables or secrets management systems.
services:
mariadb:
image: mariadb:12.2
environment:
MARIADB_DATABASE: springuser
MARIADB_USER: springuser
MARIADB_PASSWORD: springuser
MARIADB_ROOT_PASSWORD: rootpassword
ports:
- "3306:3306"
volumes:
- mariadb-data:/var/lib/mysql
# Local mail catcher. bootRun starts it automatically (spring.docker.compose.file: compose.dev.yaml).
# Nothing sends to it unless a profile points spring.mail here: the base config uses real SMTP, and the
# step-up E2E profile (application-step-up-e2e.yml) redirects mail to localhost:1025 so the Playwright
# suite can assert the passkey-registration notification via the web API on 8025.
mailpit:
image: axllent/mailpit:v1.30.7
ports:
- "1025:1025" # SMTP
- "8025:8025" # web UI + REST API
environment:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
healthcheck:
test: ["CMD", "/mailpit", "readyz"]
interval: 10s
timeout: 5s
retries: 5
volumes:
mariadb-data: