This had me scratching my head a bit: I've set REDIS_HOST for the app:-target in the Apache docker-compose-file, and every five minutes (when cron comes around) I would get Redis server went away stains in the log.
It turns out that of course the solution is to pass the REDIS_{HOST, PORT} environment variables also to the cron:-target, e.g. in
.
I suggest to add the REDIS_*-variables to the cron:-section in the example template (possibly elsewhere?) to remind folks to do this.
[Or I misdiagnosed the issue, and I have some other problem – I had assumed the whole time that the cron-container would just trigger tasks in the running instance, but apparently that wasn't the case.]