OpenMRS+Keycloak+Fhir2

@theanandankit @ibacher if I use your docker-compose.yml file without changes where network mode is host. I can access this link

network_mode: “host”

# curl -vL http://localhost:8180/auth/realms/openmrs/.well-known/openid-configuration
*   Trying ::1...
* TCP_NODELAY set
* connect to ::1 port 8180 failed: Connection refused
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8180 (#0)
> GET /auth/realms/openmrs/.well-known/openid-configuration HTTP/1.1
> Host: localhost:8180
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache, must-revalidate, no-transform, no-store
< X-XSS-Protection: 1; mode=block
< X-Frame-Options: SAMEORIGIN
< Referrer-Policy: no-referrer
< Date: Fri, 18 Feb 2022 07:53:19 GMT
< Connection: keep-alive
< Strict-Transport-Security: max-age=31536000; includeSubDomains
< X-Content-Type-Options: nosniff
< Content-Type: application/json
< Content-Length: 3910
<
{"issuer":"http://localhost:8180/auth/realms/openmrs","authorization_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/auth","token_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/token","introspection_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/token/introspect","userinfo_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/userinfo","end_session_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/logout","jwks_uri":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/certs","check_session_iframe":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/login-status-iframe.html","grant_types_supported":["authorization_code","implicit","refresh_token","password","client_credentials","urn:ietf:params:oauth:grant-type:device_code","urn:openid:params:grant-type:ciba"],"response_types_supported":["code","none","id_token","token","id_token token","code id_token","code token","code id_token token"],"subject_types_supported":["public","pairwise"],"id_token_signing_alg_values_supported":["PS384","ES384","RS384","HS256","HS512","ES256","RS256","HS384","ES512","PS256","PS512","RS512"],"id_token_encryption_alg_values_supported":["RSA-OAEP","RSA-OAEP-256","RSA1_5"],"id_token_encryption_enc_values_supported":["A256GCM","A192GCM","A128GCM","A128CBC-HS256","A192CBC-HS384","A256CBC-HS512"],"userinfo_signing_alg_values_supported":["PS384","ES384","RS384","HS256","HS512","ES256","RS256","HS384","ES512","PS256","PS512","RS512","none"],"request_object_signing_alg_values_supported":["PS384","ES384","RS384","HS256","HS512","ES256","RS256","HS384","ES512","PS256","PS512","RS512","none"],"response_modes_supported":["query","fragment","form_post"],"registration_endpoint":"http://localhost:8180/auth/realms/openmrs/clients-registrations/openid-connect","token_endpoint_auth_methods_supported":["private_key_jwt","client_secret_basic","client_secret_post","tls_client_auth","client_secret_jwt"],"token_endpoint_auth_signing_alg_values_supported":["PS384","ES384","RS384","HS256","HS512","ES256","RS256","HS384","ES512","PS256","PS512","RS512"],"introspection_endpoint_auth_methods_supported":["private_key_jwt","client_secret_basic","client_secret_post","tls_client_auth","client_secret_jwt"],"introspection_endpoint_auth_signing_alg_values_supported":["PS384","ES384","RS384","HS256","HS512","ES256","RS256","HS384","ES512","PS256","PS512","RS512"],"claims_supported":["aud","sub","iss","auth_time","name","given_name","family_name","preferred_username","email","acr"],"claim_types_supported":["normal"],"claims_parameter_supported":true,"scopes_supported":["openid","profile","encounter/*.read","patient/*.read","phone","web-origins","roles","address","patient/Patient.read","launch/encounter","launch","email","launch/patient","microprofile-jwt","offline_access"],"request_parameter_supported":true,"request_uri_parameter_supported":true,"require_request_uri_registration":true,"code_challenge_methods_sup* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact
ported":["plain","S256"],"tls_client_certificate_bound_access_tokens":true,"revocation_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/revoke","revocation_endpoint_auth_methods_supported":["private_key_jwt","client_secret_basic","client_secret_post","tls_client_auth","client_secret_jwt"],"revocation_endpoint_auth_signing_alg_values_supported":["PS384","ES384","RS384","HS256","HS512","ES256","RS256","HS384","ES512","PS256","PS512","RS512"],"backchannel_logout_supported":true,"backchannel_logout_session_supported":true,"device_authorization_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/auth/device","backchannel_token_delivery_modes_supported":["poll"],"backchannel_authentication_endpoint":"http://localhost:8180/auth/realms/openmrs/protocol/openid-connect/ext/ciba/auth"}#

but I cant access

http://localhost:8080/openmrs

from my browser :slight_smile: