I\'m having problems trying to get imap working with my docker-compose.
Here is what my php dockerfile looks like.
FROM php:7.2-fpm RUN apt-get upda
To use imap module with PHP in Docker you must configure extension like this
docker-php-ext-configure imap --with-kerberos --with-imap-ssl
You can see an example of Dockerfile in one of my project