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

feat(docker): Bump version 0.8.0 #2

Merged
merged 1 commit into from
Jul 27, 2021
Merged
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
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`.