From 2b523439673fea4836fc16c48cea6b706c48ba1a Mon Sep 17 00:00:00 2001
From: Pranav C <61551451+pranavxc@users.noreply.github.com>
Date: Sun, 18 Jul 2021 17:05:14 +0530
Subject: [PATCH] docs: Add docker and docker compose example
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
---
packages/noco-docs/content/en/index.md | 85 +++++++++++++++++++++++++-
1 file changed, 84 insertions(+), 1 deletion(-)
diff --git a/packages/noco-docs/content/en/index.md b/packages/noco-docs/content/en/index.md
index 1d2b638c47..a9d3c86e72 100644
--- a/packages/noco-docs/content/en/index.md
+++ b/packages/noco-docs/content/en/index.md
@@ -63,7 +63,90 @@ npm start
```
-
+
+
+
+
+
+
+
+# Production Setup
+NocoDB requires a database to store metadata of spreadsheets views and external databases.
+And connection params for this database can be specified in `NC_DB` environment variable.
+
+
+## Docker
+
+
+
+
+```shell script
+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
+```
+
+
+
+```shell script
+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
+```
+
+
+
+
+```shell script
+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
+
+
+
+
+
+```shell script
+git clone https://github.com/nocodb/nocodb
+cd docker-compose
+cd mysql
+docker-compose up
+```
+
+
+
+```shell script
+git clone https://github.com/nocodb/nocodb
+cd docker-compose
+cd pg
+docker-compose up
+```
+
+
+
+
+```shell script
+git clone https://github.com/nocodb/nocodb
+cd docker-compose
+cd mssql
+docker-compose up
+```
+
+
+
+
+
+
+
+
### Sample app