Browse Source

Add Dockerfile and update README

master
Vuillemot Florian 7 months ago
parent
commit
bb86c322dc
2 changed files with 28 additions and 2 deletions
  1. 8
    0
      Dockerfile-smtp
  2. 20
    2
      README.md

+ 8
- 0
Dockerfile-smtp View File

@@ -0,0 +1,8 @@
FROM node:8

RUN npm install -g fake-smtp-server@0.8.0

EXPOSE 1025
EXPOSE 1080

CMD ["fake-smtp-server"]

+ 20
- 2
README.md View File

@@ -1,4 +1,22 @@
# fake-smtp-server-dockerfile

Fake SMTP Server in a Docker (DEV env only)
Fake SMTP Server in a Docker (DEV env only)

Based on: https://www.npmjs.com/package/fake-smtp-server

Ports exposes in Dockerfile:
- 1025 for SMTP server
- 1080 for HTTP server

Add it in a docker-compose:
`
version: "2"
services:
fakesmtp:
build:
context: .
dockerfile: Dockerfile-smtp
ports:
- "1025:1025"
- "1080:1080"
`

Loading…
Cancel
Save