Add docker installation to README (#19)

This commit is contained in:
Kiran K 2022-03-17 07:14:33 +05:30 committed by GitHub
parent 6e031ea51a
commit 390b74cec1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,25 @@ Try [Mock SAML](https://mocksaml.com/), our free hosted service.
## Install ## Install
### With Docker
The docker container can be found at [boxyhq/mock-saml](https://hub.docker.com/r/boxyhq/mock-saml).
```bash
docker run \
-p 4000:4000 \
-e APP_URL="http://localhost:4000" \
-e ENTITY_ID="https://saml.example.com/entityid" \
-e PUBLIC_KEY="<PUBLIC_KEY>" \
-e PRIVATE_KEY="<PRIVATE_KEY>" \
-d boxyhq/mock-saml
```
Replace `<PUBLIC_KEY>` with Base64 encoded value of public key.
Replace `<PRIVATE_KEY>` with Base64 encoded value of private key.
### Without Docker
``` ```
git clone https://github.com/boxyhq/mock-saml.git git clone https://github.com/boxyhq/mock-saml.git
``` ```