Drupal on Docker with sSMTP and Traefik Support

sSMTP has been abandoned on the Ubuntu repository so please move to my mSMTP tutorial instead

Overview

In this tutorial I will share my Drupal on docker with sSMTP setup, for versions 6/8. The stack includes Drupal (with sSMTP), MariaDB, Adminer, Backup and Traefik support.

Drupal on docker with sSMTP Setup

  1. clone the repo:
    1. Drupal 6 – https://github.com/RaveMaker/docker-drupal6
    2. Drupal 8 – https://github.com/RaveMaker/docker-drupal8
  2. edit .env file
  3. create ssmtp/ssmtp.conf from provided ssmtp.conf.example
1
2
3
4
5
6
7
8
9
10
# Should be the same as folder: replace 8 with 6 for Druapl6
podName=docker-druapl8
# VirtualHost address
hostRule=druapl8.docker.localhost
# Database credentials
dbName=exampledatabase
dbUser=exampleuser
dbPass=examplepass
# Time Zone
timeZone=Asia/Jerusalem

Network settings

The stack is divided into two networks, backend and frontend.

the idea behind splitting the stack into two networks is to block the access of the reverse proxy to the backend containers.

both networks are unique and will be named with stackname_networname such as:

  • docker-drupal8_backend
  • docker-drupal8_frontend

after running docker-compose up you need to connect your reverse proxy to your new frontend network: you can do that manually using:

  • docker network connect docker-drupal8_frontend PROXY_CONTAINER_NAME

if you are using my Traefik setup there is a ‘connect.sh’ script included that will connect all your frontend networks to your Traefik container.

1 thought on “Drupal on Docker with sSMTP and Traefik Support

  1. Helaina Scholz

    Hello
    My name is Helaina and I would like to ask if there is any Collaboration option available on your website
    I would like to post a unique and high quality article with a dofollow link inside
    Please let me know all the guidelines for a perfect article

    Best Regards
    Helaina

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.