Updated docs for docker configuration (#322)

This commit is contained in:
Pranav Raj S 2019-11-29 00:57:49 +05:30 committed by Sojan Jose
parent 8ea74a21b0
commit 070f762293
3 changed files with 32 additions and 4 deletions

View file

@ -83,3 +83,15 @@ POSTGRES_DATABASE=chatwoot_production
POSTGRES_USERNAME=admin
POSTGRES_PASSWORD=password
```
### Rails Production Variables
For production deployment, you have to set the following variables
```bash
RAILS_ENV=production
SECRET_KEY_BASE=replace_with_your_own_secret_string
```
You can generate `SECRET_KEY_BASE` using `rake secret` command from project root folder.

View file

@ -78,7 +78,13 @@ to see the application up and running.
### Docker for production
On the root directory run the following command :
You can use our official Docker image from [https://hub.docker.com/r/chatwoot/chatwoot](https://hub.docker.com/r/chatwoot/chatwoot)
```bash
docker pull chatwoot/chatwoot
```
You can create an image yourselves by running the following command on the root directory.
```bash
docker image build -f docker/Dockerfile .