To enable the fetchmail service to retrieve e-mails set the environment variable ENABLE_FETCHMAIL to 1 Your docker-compose.yml file should look like following snippet:
fetchmail
ENABLE_FETCHMAIL
1
docker-compose.yml
... environment: - ENABLE_FETCHMAIL=1 ...