Xabaril / Esquio

Esquio is a Feature Toggle Library for .NET Developers.
Apache License 2.0
428 stars 49 forks source link

Docs on running Esquio UI in Docker #124

Closed jmezach closed 4 years ago

jmezach commented 4 years ago

Are there any docs yet on how to run the Esquio UI in Docker? I can start it just fine, but I'm not able to login, probably because there's no database configured. Not sure how to configure that though, or even what my options are storing the database?

unaizorrilla commented 4 years ago

Hi @jmezach

There are some environment variables to configure

-e ConnectionStringsEsquio=[your sql server connection string] -e SecurityOpenIdAuthority=[your authority, for example https://demo.identityserver.io] -e SecurityOpenIdClientId=[your client id] -e SecurityOpenIdResponseType=[your openid flow response type to use, for example code] -e SecurityOpenId__Audience=[your security audience]

You can check the settings that we use on demo

https://github.com/Xabaril/Esquio/blob/master/src/Esquio.UI.Host/appsettings.json

Also, if you want to tests Esquio on local, you can do directly with our compose

docker-compose -f .\build\docker-compose-demo-with-ui.yml up

This build and up the demo app and the Esquio UI with dependencies ( sqlserver ) to easly test Esquio.

I hope @carlosrecuero can add docker information to our docs soon!

jmezach commented 4 years ago

Thanks @unaizorrilla, that helped. I've managed to run Esquio UI with docker-compose locally and it works great. Definitely a good idea to add this to the docs so that people can get started quickly.