No matter what directory I'll set in odoo.conf, I'm receiving the same error again and again.
ERROR: couldn't create the logfile directory. Logging to the standard output.
I was trying to set:
logfile = /etc/odoo
logifle = /tmp
logfile = /var/log/odoo
Docker Compose examples from official https://hub.docker.com/_/odoo
Do you have permission to write to those folders?
Are you using docker volume or mapping to a directory on the host?
In logs case I don't use volumes. /var/log/odoo is created during docker build - according to official dockerfile definition.
I have posted an answer based on your clarification. Please take a look.