Ubuntu 20.04, Docker version 19.03.8
cat /etc/security/limits.conf
... * hard nofile 1048576 * soft nofile 1048576
cat docker-compose.