During the research for that problem I came to the finding that if any files mounted to docker-entrypoint-initdb.d are unreadable to postgres user (e.g. have wrong permissions), docker-entrypoint.sh just goes ahead and ignores them.
IMHO the entrypoint script should be more verbose in terms of complaining about files being there but having wrong permissions, instead of just passing by and starting up the server.