Allocate more CPU + fix for host volumes
This commit is contained in:
parent
95a7b502ab
commit
53b5ede01d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue