-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.local.yml
More file actions
30 lines (28 loc) · 1.19 KB
/
Copy pathcompose.local.yml
File metadata and controls
30 lines (28 loc) · 1.19 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
# Full-stack local e2e: builds both images from local sources instead of ghcr,
# with self-contained dev-only credentials (no .env needed).
#
# 1. One-time: generate dev RSA keys into ./secrets/ (see README "Local development")
# 2. docker compose -f compose.yml -f compose.local.yml up --build
# 3. open http://localhost:8080
services:
db:
environment:
POSTGRES_PASSWORD: localdev
backend:
image: authservice-backend:local
build:
context: ./backend
environment:
ConnectionStrings__DefaultConnection: "Host=db;Port=5432;Database=authservice;Username=authservice;Password=localdev"
Jwt__Issuer: http://localhost:8080
Jwt__Audience: http://localhost:8080
# Dev-only values — never reuse in production. OIDC clients are created
# through the admin UI (bootstrap admin: register "localadmin", restart).
Oidc__EncryptionKey: "3q2+7wEjRRSKPfXpVGVRVKgXltV7Kbk9sMkY1u8F0z4="
Admin__BootstrapUsername: localadmin
# SPA's own OAuth round-trip callback (the only redirectUrl consumer)
OAuthSecurity__AllowedRedirectOrigins__0: http://localhost:8080
frontend:
image: authservice-frontend:local
build:
context: ./frontend