Not quite dev, not quite production

You could engineer the yaml file to install mailcatcher and start it same way it starts other services. Then you could export the port out of the container.

Alternatively you can run mailcatcher on the host and just set up the ENV to talk to it.