diff --git a/Dockerfile b/Dockerfile index 0c3fb85..69d4193 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,7 +69,8 @@ RUN echo "$REPO_URL" | tee /etc/apt/sources.list.d/onlyoffice.list && \ service supervisor stop && \ chmod 755 /app/onlyoffice/*.sh && \ rm -rf /var/log/onlyoffice && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" | tee -a /etc/rabbitmq/rabbitmq-env.conf VOLUME /var/log/onlyoffice /var/lib/onlyoffice /var/www/onlyoffice/Data /var/lib/postgresql /usr/share/fonts/truetype/custom diff --git a/run-document-server.sh b/run-document-server.sh index 37d0c31..3e3bb2b 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -412,8 +412,6 @@ if [ ${ONLYOFFICE_DATA_CONTAINER_HOST} = "localhost" ]; then LOCAL_SERVICES+=("rabbitmq-server") # allow Rabbitmq startup after container kill rm -rf /var/run/rabbitmq - # number of threads - echo "SERVER_ADDITIONAL_ERL_ARGS=\"+S 1:1\"" >> /etc/rabbitmq/rabbitmq-env.conf fi if [ ${REDIS_SERVER_HOST} != "localhost" ]; then