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.]
This had me scratching my head a bit: I've set
REDIS_HOSTfor theapp:-target in the Apache docker-compose-file, and every five minutes (whencroncomes around) I would getRedis server went awaystains in the log.It turns out that of course the solution is to pass the
REDIS_{HOST, PORT}environment variables also to thecron:-target, e.g. indocker/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml
Line 41 in 4cf9a20
I suggest to add the
REDIS_*-variables to thecron:-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.]