Allocate more CPU + fix for host volumes

This commit is contained in:
Daniel Berteaud 2023-11-18 23:28:02 +01:00
parent 95a7b502ab
commit 53b5ede01d
4 changed files with 9 additions and 5 deletions

View File

@ -3,4 +3,4 @@
set -euo pipefail
echo "Replacing env variable in nginx config"
busybox awk -f /usr/local/bin/envsubst < /etc/nginx/nginx.conf > /tmp/nginx.conf
/usr/local/bin/envsubst < /etc/nginx/nginx.conf > /tmp/nginx.conf

View File

@ -1,5 +1,5 @@
[program:docservice]
command=/var/www/onlyoffice/documentserver/server/DocService/docservice
command=sh -c "rm -f /tmp/oods.sock && exec /var/www/onlyoffice/documentserver/server/DocService/docservice"
directory=/var/www/onlyoffice/documentserver/server/DocService
stdout_logfile=/proc/self/fd/1
stdout_logfile_backups=0

View File

@ -15,15 +15,19 @@ job [[ .oo.instance | toJSON ]] {
volume "data" {
type = [[ .oo.volumes.data.type | toJSON ]]
source = [[ .oo.volumes.data.source | toJSON ]]
[[- if ne .oo.volumes.data.type "host" ]]
access_mode = "single-node-writer"
attachment_mode = "file-system"
[[- end ]]
}
volume "rabbitmq" {
type = [[ .oo.volumes.rabbitmq.type | toJSON ]]
source = [[ .oo.volumes.rabbitmq.source | toJSON ]]
[[- if ne .oo.volumes.rabbitmq.type "host" ]]
access_mode = "single-node-writer"
attachment_mode = "file-system"
[[- end ]]
}
service {

View File

@ -9,11 +9,11 @@ oo:
# Document Services
ds:
# Docker image to use
image: danielberteaud/onlyoffice-docserver:7.5.1-1
image: danielberteaud/onlyoffice-docserver:7.5.1-5
# Resource allocation for OnlyOffice itself
resources:
cpu: 200
cpu: 300
memory: 512
# The URL where OnlyOffice is available
@ -73,7 +73,7 @@ oo:
# Resource allocation
resources:
cpu: 80
cpu: 200
memory: 156
# Volume used