Skip to content

Commit

Permalink
Merge pull request #2 from Jean-Beru/feature/bump-0.8.0
Browse files Browse the repository at this point in the history
feat(docker): Bump version 0.8.0
  • Loading branch information
Jean-Beru authored Jul 27, 2021
2 parents a3c3750 + e905e0b commit 4513abf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM alpine:latest

ENV VERSION 0.7.1
ENV HTTP_PORT 1080
ENV SMTP_PORT 1025
ARG VERSION=0.8.0

RUN apk add --update ruby ruby-dev ruby-etc ruby-bigdecimal sqlite sqlite-dev build-base libstdc++ ca-certificates && \
gem install json --no-ri --no-rdoc && \
gem install mailcatcher -v $VERSION --no-ri --no-rdoc && \
gem install json --no-document && \
gem install mailcatcher -v $VERSION --no-document && \
apk del --purge ruby-dev build-base && \
rm -rf /var/cache/apk/*

EXPOSE $SMTP_PORT $HTTP_PORT

CMD mailcatcher -f --ip=0.0.0.0 --smtp-port=$SMTP_PORT --http-port=$HTTP_PORT
ENTRYPOINT ["mailcatcher", "--foreground"]
CMD ["--ip", "0.0.0.0"]
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
Mailcatcher
===========
# 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`

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

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

**HTTP_PORT** Change default HTTP port (default: 1080)
To change options, replace Docker image default command. You can see option list
[here](https://github.com/sj26/mailcatcher#command-line-options).

Example: `docker run -d --expose 80 -p 80:80 -p 1025:1025 --name mailcatcher jeanberu/mailcatcher --ip=0.0.0.0
--http-port=80`

Docker image's default options are: `--ip=0.0.0.0`.

0 comments on commit 4513abf

Please sign in to comment.