diff --git a/Dockerfile b/Dockerfile index 82d669f..85218e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,10 +64,5 @@ USER sogo # load env RUN . /usr/share/GNUstep/Makefiles/GNUstep.sh -# Number of Workers - has an impact on performance -# you can tweak this parameters using --env when launching `docker run` -# ex. : `docker run --env WorkersCount=8 sogo-image -ENV WorkersCount 4 - -CMD [ "sogod", "-WOUseWatchDog", " NO", "-WONoDetach", "YES", "-WOPort", "20000", "-WOWorkersCount", "${WorkersCount}", "-WOLogFile", "-", "-WOPidFile", "/tmp/sogo.pid"] +CMD [ "sogod", "-WONoDetach", "YES", "-WOPort", "20000", "-WOLogFile", "-", "-WOPidFile", "/tmp/sogo.pid"] diff --git a/sogo.default.conf b/sogo.default.conf index 6fdd508..89cf3cc 100644 --- a/sogo.default.conf +++ b/sogo.default.conf @@ -127,6 +127,12 @@ // reach memcached through docker SOGoMemcachedHost = "memcached"; + + // this has a great impact on performance: you should adjust the number + // of workers according to the number of users and the performance of your + // machine + WorkersCount = 4; +