From 1ae36ff6fb540a1bab70e95eef6f40e1452ea9c1 Mon Sep 17 00:00:00 2001 From: Naveen MR Date: Sun, 6 Jun 2021 18:00:04 +0530 Subject: [PATCH] Docs : Added NC_AUTH_JWT_SECRET in examples. Signed-off-by: Naveen MR --- README.md | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ac58db8432..f01baeaec6 100644 --- a/README.md +++ b/README.md @@ -130,19 +130,36 @@ And connection params for this database can be specified in `NC_DB` environment #### 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 ``` -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 ``` -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 | Variable | Mandatory | Comments | If absent | |-------------------------|-----------|----------------------------------------------------------------------------------|--------------------------------------------|