Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
48 lines (46 loc) · 1.44 KB
/
Copy pathcompose.yaml
File metadata and controls
48 lines (46 loc) · 1.44 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
# Local 3-minute quickstart: Better Auth (OAuth 2.1 + Magic Link dev logs) + Rust MCP template.
# No domain, no Resend API key, no external database required.
#
# docker compose up -d --build
# node services/template/scripts/smoke.mjs
# docker compose logs service | grep mstack::audit
#
services:
auth:
build: ./services/auth
ports:
- "3081:3081"
environment:
PORT: "3081"
AUTH_URL: "http://localhost:3081"
AUTH_BRAND: "mstack local"
AUTH_DB_PATH: "/data/auth.db"
MCP_RESOURCES: "http://localhost:3080/mcp"
BETTER_AUTH_SECRET: "${BETTER_AUTH_SECRET:-local-dev-secret-change-in-production-32bytes}"
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:3081/health').then((r) => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 3s
timeout: 3s
retries: 15
volumes:
- auth-data:/data
service:
build: ./services/template
depends_on:
auth:
condition: service_healthy
ports:
- "3080:3080"
environment:
HOST: "0.0.0.0"
PORT: "3080"
MSTACK_URL: "http://localhost:3080"
MSTACK_DATA_DIR: "/data"
# Validate external issuer claim while fetching JWKS over Docker's internal network.
AUTH_ISSUERS: "http://localhost:3081/api/auth|http://auth:3081/api/auth/jwks"
RUST_LOG: "mstack_service=info,warn"
volumes:
- service-data:/data
volumes:
auth-data:
service-data: