A docker container that integrates nginx, php8, as well as msmtp (a smtp mail client).
507
Here is a sample docker-compose:
name: website
services:
nginx:
container_name: website
ports:
- 80:8080
- 443:443
volumes:
- ./html:/var/www/html:ro
- ./config:/var/www/config:ro
image: addohm/nginx-php8-msmtp:latest
This allows you to extend and bind your configuration files to your host. I don't often need to put anything into the nginx.conf, php-fpm.conf or php.ini files are just small tweaks. The msmtp.conf file is where you'll have to do some work. Here is a samples:
# Set default values for all following accounts.
defaults
# logfile stdout
# Gmail
account gmail
host smtp.gmail.com
port 465
tls_starttls off
from [email protected]
user username
password plain-text-password
# Office
account office
host smtp.office365.com
port 587
auth on
tls on
tls_starttls on
tls_certcheck on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
from [your email address]
user [your email address]
password [password]
# Set a default account
account default: office
Content type
Image
Digest
sha256:cf0332f2f…
Size
43.2 MB
Last updated
over 1 year ago
docker pull addohm/nginx-php8-msmtp