Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ports to docker-compose value friendly #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:latest

ENV VERSION 0.6.5
ENV HTTP_PORT 1080
ENV SMTP_PORT 1025
ENV HTTP_PORT 80
ENV SMTP_PORT 25

RUN apk add --update ruby ruby-dev ruby-bigdecimal sqlite sqlite-dev build-base libstdc++ ca-certificates && \
gem install json --no-ri --no-rdoc && \
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ Mailcatcher

[Mailcatcher](http://mailcatcher.me) catches mail and serves it through a dream.

Run with : `docker run -d -p 1025:1025 -p 1080:1080 --name mailcatcher jeanberu/mailcatcher`
Run with : `docker run -d -p 1025:25 -p 1080:80 --name mailcatcher jeanberu/mailcatcher`

Deliver mails to smtp://127.0.0.1:1025 et check out [http://127.0.0.1:1080]() to see them.

When you are using it with `docker-compose` and a DNS resolver, out of the box you can deliver mails to
smtp://yourdns:25 et check out http://yourdns to see them.

Environment variables
---------------------
**SMTP_PORT** Change default SMTP port (default: 1025)
**SMTP_PORT** Change default SMTP port (default: 25)

**HTTP_PORT** Change default HTTP port (default: 1080)
**HTTP_PORT** Change default HTTP port (default: 80)