generated from coop-cloud/example
template db, add release note
This commit is contained in:
parent
f97bb24bc9
commit
21d67d0113
|
@ -2,6 +2,8 @@ TYPE=onlyoffice
|
|||
LETS_ENCRYPT_ENV=production
|
||||
DOMAIN=onlyoffice.example.com
|
||||
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
|
||||
AUTO_ASSEMBLY_ENABLED=false
|
||||
AUTO_ASSEMBLY_INTERVAL=5min
|
||||
AUTO_ASSEMBLY_STEP=1min
|
||||
|
|
11
compose.yml
11
compose.yml
|
@ -19,6 +19,8 @@ services:
|
|||
AUTO_ASSEMBLY_ENABLED:
|
||||
AUTO_ASSEMBLY_INTERVAL:
|
||||
AUTO_ASSEMBLY_STEP:
|
||||
secrets:
|
||||
- db_password
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/welcome"]
|
||||
interval: 30s
|
||||
|
@ -59,9 +61,11 @@ services:
|
|||
environment:
|
||||
POSTGRES_DB: onlyoffice
|
||||
POSTGRES_USER: onlyoffice
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data
|
||||
secrets:
|
||||
- db_password
|
||||
networks:
|
||||
- internal
|
||||
healthcheck:
|
||||
|
@ -79,6 +83,11 @@ networks:
|
|||
external: true
|
||||
internal:
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
external: true
|
||||
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
||||
|
||||
configs:
|
||||
local_json:
|
||||
name: ${STACK_NAME}_local_json_${LOCAL_JSON_VERSION}
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
"services": {
|
||||
"CoAuthoring": {
|
||||
"sql": {
|
||||
"type": "postgres",
|
||||
"dbHost": "db",
|
||||
"dbPort": "5432",
|
||||
"dbName": "onlyoffice",
|
||||
"dbUser": "onlyoffice",
|
||||
"dbPass": "onlyoffice"
|
||||
"type": "{{ env "DB_TYPE" }}",
|
||||
"dbHost": "{{ env "DB_HOST" }}",
|
||||
"dbPort": "{{ env "DB_PORT" }}",
|
||||
"dbName": "{{ env "DB_NAME" }}",
|
||||
"dbUser": "{{ env "DB_USER" }}",
|
||||
"dbPass": "{{ secret "db_password" }}"
|
||||
},
|
||||
{{ if eq (env "JWT_ENABLED") "true" }}
|
||||
"token": {
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
This release upgrades onlyoffice to v7, adds a seperate postgresdb + rabbitmq
|
||||
and adds env variables for the forcesave option.
|
||||
|
||||
Please add this to your .env file:
|
||||
|
||||
```
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
|
||||
AUTO_ASSEMBLY_ENABLED=false
|
||||
AUTO_ASSEMBLY_INTERVAL=5min
|
||||
AUTO_ASSEMBLY_STEP=1min
|
||||
```
|
||||
|
||||
If you like to use the forcesave option, set `AUTO_ASSEMBLY_ENABLED=true`.
|
||||
|
||||
Don't forget to generate or insert a new db secret: `abra app secret generate onlyoffice.example.org db_password v1`
|
||||
|
||||
@yksflip
|
Loading…
Reference in New Issue