mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
use udp instead of tcp for socat
This commit is contained in:
parent
557d126707
commit
7d44ab689e
|
@ -38,6 +38,6 @@ ln -sf /dev/stdout /opt/seafile/logs/seafile.log &&\
|
|||
ln -sf /dev/stdout /opt/seafile/logs/controller.log &&\
|
||||
ln -sf /dev/stdout /opt/seafile/logs/ccnet.log
|
||||
|
||||
EXPOSE 8080 8082 8001
|
||||
EXPOSE 8080 8082 8001/UDP
|
||||
|
||||
CMD ["/scripts/start.sh"]
|
||||
|
|
|
@ -21,7 +21,7 @@ function start_socat {
|
|||
while [ ! -S /opt/seafile/seafile-server-latest/runtime/seafile.sock ]; do
|
||||
sleep 1
|
||||
done
|
||||
socat -d -d TCP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever
|
||||
socat -d -d UDP-LISTEN:8001,fork,reuseaddr UNIX:/opt/seafile/seafile-server-latest/runtime/seafile.sock,forever
|
||||
}
|
||||
|
||||
function stop_socat {
|
||||
|
|
|
@ -10,7 +10,7 @@ function start_seahub {
|
|||
|
||||
function start_socat {
|
||||
mkdir -p /opt/seafile/seafile-server-latest/runtime
|
||||
socat -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork TCP:seafile-server:8001,forever,keepalive,keepidle=10,keepintvl=10,keepcnt=2
|
||||
socat -d -d UNIX-LISTEN:/opt/seafile/seafile-server-latest/runtime/seafile.sock,fork UDP:seafile-server:8001
|
||||
}
|
||||
|
||||
function keep_running {
|
||||
|
|
Loading…
Reference in a new issue