siwe-oidc/test/docker-compose.yml
Simon Bihel d4ce5c1616
Update openidconnect-rs (#54)
And add integration test
2023-04-17 13:16:39 +01:00

35 lines
978 B
YAML

version: "3"
services:
siwe-oidc:
build: ..
image: ghcr.io/spruceid/siwe_oidc:latest
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"
SIWEOIDC_DEFAULT_CLIENTS: '{sdf="{\"secret\":\"sdf\", \"metadata\": {\"redirect_uris\": [\"http://localhost:8080/realms/master/broker/oidc/endpoint\"]}}"}'
RUST_LOG: "siwe_oidc=debug,tower_http=debug"
keycloak:
image: quay.io/keycloak/keycloak:19.0.1
ports:
- "8080:8080"
command: "start-dev"
# network_mode: "host"
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
redis:
image: redis
healthcheck:
test: ["CMD", "redis-cli","ping"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "6379:6379"