Browse Source

Docs : Added NC_AUTH_JWT_SECRET in examples.

Signed-off-by: Naveen MR <oof1lab@gmail.com>
pull/247/head
Naveen MR 4 years ago
parent
commit
1ae36ff6fb
  1. 23
      README.md

23
README.md

@ -130,19 +130,36 @@ And connection params for this database can be specified in `NC_DB` environment
#### Example MySQL #### Example MySQL
``` ```
docker run -d -p 8080:8080 -e NC_DB="mysql2://host:port?u=user&p=password&d=database" nocodb/nocodb docker run -d -p 8080:8080 \
-e NC_DB="mysql2://host.docker.internal:3306?u=root&p=password&d=d1" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb
``` ```
#### Example Postgres #### Example Postgres
``` ```
docker run -d -p 8080:8080 -e NC_DB="pg://host:port?u=user&p=password&d=database" nocodb/nocodb docker run -d -p 8080:8080 \
-e NC_DB="pg://host:port?u=user&p=password&d=database" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb
``` ```
#### Example SQL Server #### Example SQL Server
``` ```
docker run -d -p 8080:8080 -e NC_DB="mssql://host:port?u=user&p=password&d=database" nocodb/nocodb docker run -d -p 8080:8080 \
-e NC_DB="mssql://host:port?u=user&p=password&d=database" \
-e NC_AUTH_JWT_SECRET="569a1821-0a93-45e8-87ab-eb857f20a010" \
nocodb/nocodb
``` ```
## Docker Compose
```
cd docker-compose
cd mysql or pg or mssql
docker-compose up
```
## Environment variables ## Environment variables
| Variable | Mandatory | Comments | If absent | | Variable | Mandatory | Comments | If absent |
|-------------------------|-----------|----------------------------------------------------------------------------------|--------------------------------------------| |-------------------------|-----------|----------------------------------------------------------------------------------|--------------------------------------------|

Loading…
Cancel
Save