Giter Site home page Giter Site logo

jbkt / docker-php-ssmtp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from harobed/docker-php-ssmtp

0.0 2.0 0.0 4 KB

This Docker image add ssmtp service to official Docker Php7 Apache image.

Dockerfile 34.04% Makefile 5.78% Shell 4.81% HTML 22.18% PHP 33.20%

docker-php-ssmtp's Introduction

Php7 + Apache + SSMTP

This image add ssmtp service to official Docker Php7 Apache image.

With ssmtp* you can use buildin mail Php function to send mails via smtp server configured by SSMTP_* environment variables.

This image enable also Apache Rewrite mod, RewriteEngine can be used in .htaccess.

docker-compose.yml example to connect apache service to postfix:

version: '3'
services:
  apache:
    image: harobed/php-ssmtp:7-apache
    environment:
      - SSMTP_HOST=postfix
      - SSMTP_PORT=25
      - SSMTP_FROM_HOSTNAME=example.com
      - SSMTP_USE_TLS=Yes
      - SSMTP_USE_STARLTLS=Yes
      - SSMTP_AUTH_USER=user
      - SSMTP_AUTH_PASSWORD=password
    ports:
      - 80

  postfix:
    image: harobed/versatile-postfix:latest
    command: exemple.com user:password
    environment:
      - DISABLE_DKIM=1

networks:
  default:
    driver: bridge

See Dockerfile to see environment variable default values.

How to test

$ git clone https://github.com/harobed/docker-php-ssmtp.git
$ cd docker-php-ssmtp
$ docker-compose up -d
$ echo "Browse to http://`docker-compose port apache 80`"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.