-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-build.yaml
53 lines (50 loc) · 1.82 KB
/
docker-compose-build.yaml
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
services:
ridser:
image: erikwegner/ridser
build: .
depends_on:
- redis
- keycloak
environment:
- RIDSER_BIND_PORT=3000
# - RIDSER_BIND_ADDRESS="::"
- RUST_LOG=ridser=debug,info
- RIDSER_PROXY_TARGET=http://echo:3000/api
- RIDSER_SESSION_REFRESH_THRESHOLD=15
# OpenID Connect Issuer
- RIDSER_OIDC_ISSUER_URL=http://172.17.0.1:8084/realms/multcorp
# Client with user data access
- RIDSER_OIDC_CLIENT_ID=ridser
# Secret for client with user data access
- RIDSER_OIDC_CLIENT_SECRET=8d476311-2577-4104-b9e4-7dc2cc381be8
# Optional: Override authorization endpoint
# Redis cache configuration
- RIDSER_REDIS_URL=redis://redis/
# Session secret, length in bytes: 64
- RIDSER_SESSION_SECRET=iIdh4cBut27H6Y5MCk9782bE3Nk56JVsahla1vhILE3tizmX5nP5riOhV8IgorzI
- RIDSER_LOGOUT_SSO_URI=http://localhost:8084/realms/multcorp/protocol/openid-connect/logout
# Comma separated list of allowed redirect uris after successful login. A trailing asterisk is allowed for wildcard matches.
- RIDSER_LOGIN_REDIRECT_APP_URIS=http://localhost:3000/*,
# Comma separated list of allowed redirect uris after successful logout. Only exact matches are allowed.
- RIDSER_LOGOUT_REDIRECT_APP_URIS=http://localhost:3000/exampleapp/
volumes:
- ./files:/files:ro
ports:
- "3000:3000"
redis:
image: redis:7-alpine
echo:
image: erikwegner/rsecho:release-1.0.0
keycloak:
image: quay.io/keycloak/keycloak:26.1.0
command:
- start-dev
- --import-realm
environment:
- KC_BOOTSTRAP_ADMIN_USERNAME=admin
- KC_BOOTSTRAP_ADMIN_PASSWORD=admin
- KC_HTTP_PORT=8084
volumes:
- ./dev_realm.json:/opt/keycloak/data/import/dev_realm.json
ports:
- "8084:8084"