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
- clone the repo:
- edit .env file
- create ssmtp/ssmtp.conf from provided ssmtp.conf.example
# Should be the same as folder: replace 8 with 6 for Druapl6
# VirtualHost address
# Database credentials
# Time Zone
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:
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.