Public | Automated Build

Last pushed: 2 months ago
Short Description
Docker image with Apache and SSMTP installed.
Full Description

PHP-APACHE-SSMTP

Docker image with Apache and SSMTP installed. You need to pass the /etc/ssmtp/ssmtp.conf file as a volume to confirgure your instance.

Usage (With docker-compose)

  • Create file docker-compose.yaml
version: '3'
services:
  web-php:
    image: navysu/php-apache-ssmtp
    container_name: ${CONTAINER_NAME}
    ports:
      - "${HTTP_PORT}:80"
    restart:
      always
    volumes:
      - ./conf/ssmtp.conf:/etc/ssmtp/ssmtp.conf
      - ./web:/var/www/html
  • Create your environment file .env
CONTAINER_NAME=myweb
HTTP_PORT=80
  • Create your ssmtp confirguration file at conf folder. You can copy the example file from here and modify it.
  • Create folder web and copy all web files into it.
  • Run command
docker-compose up

Enjony!

Docker Pull Command
Owner
navysu
Source Repository

Comments (0)