studentportalen/bff/compose.yaml
Andreas Svanberg cd9660c0b1
Protected backend with OAuth 2 login
On unauthorized HTTP response navigate to the URL indicated by the X-Authorization-Url header to begin the process of logging in.
2025-04-03 09:55:51 +02:00

30 lines
843 B
YAML

name: studentportalen-bff
services:
jaeger:
image: jaegertracing/jaeger:latest
restart: unless-stopped
ports:
- "4318:4318" # OpenTelemetry Collector
- "16686:16686" # Jaeger UI
mock-apis:
build: https://gitea.dsv.su.se/DMC/apimposter.git
restart: unless-stopped
ports:
- '63163:8080'
environment:
MOCK_BASE_PATH: / # HTTP base path for the mock server
MOCK_FILE_PATH: /mocks
volumes:
- ./src/mock-api:/mocks
oauth2:
build: https://gitea.dsv.su.se/DMC/oauth2-authorization-server.git
restart: unless-stopped
ports:
- '63164:8080'
environment:
CLIENT_ID: studentportalen
CLIENT_SECRET: p4ssw0rd
CLIENT_REDIRECT_URI: http://localhost:8080/login/oauth2/code/studentportalen
CLIENT_SCOPES: openid profile email offline_access