Skip to content

Instantly share code, notes, and snippets.

@thomasleveil
Created October 3, 2017 20:41
Show Gist options
  • Save thomasleveil/8a1cfe8195e43a3ed9ef6b8fc02904a2 to your computer and use it in GitHub Desktop.
Save thomasleveil/8a1cfe8195e43a3ed9ef6b8fc02904a2 to your computer and use it in GitHub Desktop.
docker override smtp
version: "2.1"
services:
smtp:
image: mailhog/mailhog
command: ["-smtp-bind-addr", "0.0.0.0:25"]
user: root
expose:
- 25
- 8025
labels:
traefik.enable: "true"
traefik.port: "8025"
traefik.frontend.rule: Host:mail.docker.localhost
healthcheck:
test: echo | telnet 127.0.0.1 25
@thomasleveil
Copy link
Author

Labels are related to Traefik. Remove them if you are not using Traefik.

https://docs.traefik.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment