From 7821ba09ec644f94afbeab4341ebacf618bfe8db Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 25 Feb 2022 11:54:57 +0100 Subject: [PATCH] Fix #2476 -- Document resilient setup with docker and redis --- doc/admin/installation/docker_smallscale.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/admin/installation/docker_smallscale.rst b/doc/admin/installation/docker_smallscale.rst index 2567766ea..adbcb9d95 100644 --- a/doc/admin/installation/docker_smallscale.rst +++ b/doc/admin/installation/docker_smallscale.rst @@ -108,6 +108,18 @@ Now restart redis-server:: # systemctl restart redis-server +In this setup, systemd will delete ``/var/run/redis`` on every redis restart, which will cause issues with pretix. To +prevent this, you can execute:: + + # systemctl edit redis-server + +And insert the following:: + + [Service] + # Keep the directory around so that pretix.service in docker does not need to be + # restarted when redis is restarted. + RuntimeDirectoryPreserve=yes + .. warning:: Setting the socket permissions to 777 is a possible security problem. If you have untrusted users on your system or have high security requirements, please don't do this and let redis listen to a TCP socket instead. We recommend the socket approach because the TCP socket in combination with docker's networking