From 8fbf228a8ebe1389bed1fe0e2510fae3361cf9b7 Mon Sep 17 00:00:00 2001 From: danilapog Date: Fri, 29 Jul 2022 15:55:18 +0300 Subject: [PATCH] Refactoring run with secret instructions --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b8f941..5936839 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ You are now just one step away from having our application secured. ### Running ONLYOFFICE Document Server using docker secrets -For manage sensitive data like database password/username you can use Docker secrets. If you want use secrets, you must start the Document Server like service with docker compose or docker swarm. According to official docker documentation secrets did not avalivable to [standalone containers](https://docs.docker.com/engine/swarm/secrets/). To start using the secrets you need to go through a few simple steps: +For manage sensitive data like database password/username you can use Docker secrets. If you want use secrets, you must start the Document Server like service with docker compose or docker swarm. According to [official docker documentation](https://docs.docker.com/engine/swarm/secrets/) secrets did not avalivable to standalone containers. To start using the secrets you need to go through a few simple steps: **STEP 1**: At first you need to iniciate docker swarm with command @@ -182,6 +182,8 @@ If you want use secrets only for database access: sudo printf "your_pass" | docker secret create dbPass - sudo printf "your_user" | docker secret create dbUser - ``` +NOTE: after secrets dbPass and dbUser is gonna be configured, DocumentServer will be configured automaticly for use the same secrets for postgres access. + If you want use JWT from secrets: ```bash @@ -252,6 +254,13 @@ Below is the complete list of parameters that can be set using environment varia - **LETS_ENCRYPT_DOMAIN**: Defines the domain for Let's Encrypt certificate. - **LETS_ENCRYPT_MAIL**: Defines the domain administator mail address for Let's Encrypt certificate. +Below list values avalivable only for compose/swarm mode. + +- **JWT_SECRET_FILE**: +- **JWT_HEADER_FILE**: +- **POSTGRES_USER_FILE**: +- **POSTGRES_PASSWORD_FILE**: + ## Installing ONLYOFFICE Document Server integrated with Community and Mail Servers ONLYOFFICE Document Server is a part of ONLYOFFICE Community Edition that comprises also Community Server and Mail Server. To install them, follow these easy steps: