From 822b018eb0227621dae09a0e74a2e3bee072ec9f Mon Sep 17 00:00:00 2001 From: MC Naveen <8493007+mcnaveen@users.noreply.github.com> Date: Sun, 10 Sep 2023 09:28:15 +0530 Subject: [PATCH 1/3] chore(docs): improve Docker instructions --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ca580d403..01d0d3c66 100644 --- a/README.md +++ b/README.md @@ -217,8 +217,21 @@ For the digital signature of your documents you need a signing certificate in .p Want to create a production ready docker image? Follow these steps: +- cd into `docker` directory +- Make `build.sh` executable by running `chmod +x build.sh` - Run `./docker/build.sh` in the root directory. -- Publish the image to your docker registry of choice. +- Publish the image to your docker registry of choice of If you prefer running the image from locally run the below command + +``` +docker run -d --restart=unless-stopped -p 3000:3000 -v documenso:/app/data --name documenso documenso:latest +``` + +Command Breakdown: +- `-d` - Let's you run the container in background +- `-p` - Passes down which ports to use. First half is the host port, Second half is the app port. You can change the first half anything you want and reverse proxy to that port. +- `-v` - Volume let's you persist the data +- `--name` - Name of the container +- `documenso:latest` - Image you have built # Deployment From beb9946f3b4ddd6416dda99e7a6a5582771fe235 Mon Sep 17 00:00:00 2001 From: MC Naveen <8493007+mcnaveen@users.noreply.github.com> Date: Sun, 10 Sep 2023 09:29:01 +0530 Subject: [PATCH 2/3] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01d0d3c66..25e842186 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ Want to create a production ready docker image? Follow these steps: - cd into `docker` directory - Make `build.sh` executable by running `chmod +x build.sh` - Run `./docker/build.sh` in the root directory. -- Publish the image to your docker registry of choice of If you prefer running the image from locally run the below command +- Publish the image to your docker registry of choice (or) If you prefer running the image from local, run the below command ``` docker run -d --restart=unless-stopped -p 3000:3000 -v documenso:/app/data --name documenso documenso:latest From f9d96c67d32cbda8c2c61f982fb920f0d844a19d Mon Sep 17 00:00:00 2001 From: MC Naveen <8493007+mcnaveen@users.noreply.github.com> Date: Sun, 10 Sep 2023 09:32:37 +0530 Subject: [PATCH 3/3] changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 25e842186..29ffb0d65 100644 --- a/README.md +++ b/README.md @@ -219,7 +219,7 @@ Want to create a production ready docker image? Follow these steps: - cd into `docker` directory - Make `build.sh` executable by running `chmod +x build.sh` -- Run `./docker/build.sh` in the root directory. +- Run `./build.sh` to start building the docker image. - Publish the image to your docker registry of choice (or) If you prefer running the image from local, run the below command ```