Add sample upstream provider
This commit is contained in:
46
sample_upstream_provider/docker-compose.yaml
Normal file
46
sample_upstream_provider/docker-compose.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
upstream:
|
||||
image: dexidp/dex
|
||||
user: "1000"
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./dex-provider:/conf:ro
|
||||
command: [ "dex", "serve", "/conf/dex.config.yaml" ]
|
||||
|
||||
client1:
|
||||
image: pierre42100/oidc_test_client
|
||||
user: "1000"
|
||||
network_mode: host
|
||||
environment:
|
||||
- LISTEN_ADDR=0.0.0.0:8011
|
||||
- PUBLIC_URL=http://127.0.0.1:8011
|
||||
- CONFIGURATION_URL=http://localhost:8000/.well-known/openid-configuration
|
||||
- CLIENT_ID=testclient1
|
||||
- CLIENT_SECRET=secretone
|
||||
|
||||
client2:
|
||||
image: pierre42100/oidc_test_client
|
||||
user: "1000"
|
||||
network_mode: host
|
||||
environment:
|
||||
- LISTEN_ADDR=0.0.0.0:8012
|
||||
- PUBLIC_URL=http://127.0.0.1:8012
|
||||
- CONFIGURATION_URL=http://localhost:8000/.well-known/openid-configuration
|
||||
- CLIENT_ID=testclient2
|
||||
- CLIENT_SECRET=secrettwo
|
||||
|
||||
basicoidc:
|
||||
image: rust
|
||||
user: "1000"
|
||||
network_mode: host
|
||||
environment:
|
||||
- STORAGE_PATH=/storage
|
||||
#- RUST_LOG=debug
|
||||
volumes:
|
||||
- ../:/app
|
||||
- ./storage:/storage
|
||||
- ~/.cargo/registry:/usr/local/cargo/registry
|
||||
command:
|
||||
- bash
|
||||
- -c
|
||||
- cd /app && cargo run
|
||||
Reference in New Issue
Block a user