As proposed in this MR here: https://github.com/maildev/maildev/pull/419 Currently the maildev Docker image doesn't work if you are using an alternative port and/or base-pathname.