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] 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