2021-11-29 15:05:43 -05:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
siwe-oidc:
|
|
|
|
build: .
|
2021-12-15 10:13:26 -05:00
|
|
|
image: ghcr.io/spruceid/siwe_oidc:latest
|
2021-11-29 15:05:43 -05:00
|
|
|
ports:
|
|
|
|
- "8000:8000"
|
|
|
|
environment:
|
|
|
|
SIWEOIDC_ADDRESS: "0.0.0.0"
|
|
|
|
# Need siwe-oidc in /etc/hosts for localhost to allow both the host and Keycloak to reach the IdP
|
|
|
|
SIWEOIDC_BASE_URL: "http://siwe-oidc:8000/"
|
|
|
|
SIWEOIDC_REDIS_URL: "redis://redis"
|
2022-08-19 06:36:36 -04:00
|
|
|
SIWEOIDC_DEFAULT_CLIENTS: '{sdf="{\"secret\":\"sdf\", \"metadata\": {\"redirect_uris\": [\"http://localhost:8080/realms/master/broker/oidc/endpoint\"]}}"}'
|
2021-11-29 15:05:43 -05:00
|
|
|
RUST_LOG: "siwe_oidc=debug,tower_http=debug"
|
|
|
|
|
|
|
|
keycloak:
|
2022-08-19 06:36:36 -04:00
|
|
|
image: quay.io/keycloak/keycloak:19.0.1
|
2021-11-29 15:05:43 -05:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2022-08-19 06:36:36 -04:00
|
|
|
command: "start-dev"
|
|
|
|
# network_mode: "host"
|
2021-11-29 15:05:43 -05:00
|
|
|
environment:
|
2022-08-19 06:36:36 -04:00
|
|
|
KEYCLOAK_ADMIN: admin
|
|
|
|
KEYCLOAK_ADMIN_PASSWORD: admin
|
2021-11-29 15:05:43 -05:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6-alpine
|
|
|
|
ports:
|
|
|
|
- "6379:6379"
|