Created
October 3, 2017 20:41
-
-
Save thomasleveil/8a1cfe8195e43a3ed9ef6b8fc02904a2 to your computer and use it in GitHub Desktop.
docker override smtp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels are related to Traefik. Remove them if you are not using Traefik.
https://docs.traefik.io