pygmystack / pygmy

the pygmy stack is a container stack for local development
MIT License
25 stars 13 forks source link

Request for example pygmy non-standard mailhog port #85

Closed fubarhouse closed 3 years ago

fubarhouse commented 4 years ago

Background

To avoid port conflict for other mailhog instances, it could be useful to run Pygmy's mailhog on separate ports.

Implementation

Docker

docker run --restart unless-stopped --name mailhog -p 2025:1025 -d mailhog/mailhog

Variables

n/a

Volumes

n/a
fubarhouse commented 4 years ago

Noting that MailHub ports will need to be changed on the container (SMTP configuration) to match the new port, the following will change the port binding on the host to 2025 to allow for multiple mailhog instances to be ran locally - though other mailhog instances would need such configuration and consideration. This has been tested:

services:
  amazeeio-mailhog:
    HostConfig:
      PortBindings:
        1025/tcp:
        - HostPort: 2025

More information: https://pastebin.com/UPFdfJFQ