Browse Source

mailcatcher

pull/2/head
Johannes Schickling 10 years ago
parent
commit
763785b072
  1. 20
      mailcatcher/Dockerfile
  2. 9
      mailcatcher/README.md

20
mailcatcher/Dockerfile

@ -0,0 +1,20 @@
FROM debian:wheezy
MAINTAINER Johannes Schickling "schickling.j@gmail.com"
# install ruby 1.9.1
RUN apt-get update && apt-get install -y ruby ruby-dev build-essential
# install mailcatcher
RUN gem install mailcatcher --no-ri --no-rdoc
# cleanup package manager
RUN apt-get remove --purge -y build-essential ruby-dev && apt-get autoclean && apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# smtp port
EXPOSE 1025
# webserver port
EXPOSE 1080
CMD ["mailcatcher", "-f", "--ip=0.0.0.0"]

9
mailcatcher/README.md

@ -0,0 +1,9 @@
# mailcatcher
## Usage
```sh
$ docker run -d -p 1080:1080 --name mailcatcher schickling/mailcatcher
```
Link the container to another container and use the mailcatcher SMTP port `1025` via a ENV variable like `$MAILCATCHER_PORT_1025_TCP_ADDR`.
Loading…
Cancel
Save