Skip to content

Docker Template for Wordpress with mariaDB and varnish

License

Notifications You must be signed in to change notification settings

studplus/wordpress_docker

Repository files navigation

wordpress_docker

Docker Template for Wordpress with MariaDB, Varnish and PHPmyAdmin

basic config

Installation

  • to to your /opt folder

cd /opt

  • clone the git project

git clone https://github.com/studplus/wordpress_docker.git

  • Check:

/custom-varnish/wordpress.vcl - for all your wp-folders, which one should not be cached

/custom-wordpress/

  • aliases - for your domain name and email-adress
  • app.conf - for your domain (ServerAlias) and ServerEMail-Address (ServerAdmin)
  • cronjob - change the http://0.0.0.0 to https://yourdomain.com
  • msmtprc - it is recommended to use an email-service for sending emails like a smtp of your domain provider (IONOS, STRATO, GoDaddy or AWS SES, Sendgrit, Mailgun,...). Delete the # and change here host as the smtp of your server smtp.ionos.com, the port 587, user myuser, password my password and the from which email address comes the mail from.
  • php.ini-production - if needed
  • docker-compose.yml - change the ports, user and password if needed and the MYSQL_DATABASE

wordpress configuration

  • Enter the Database-Name, User and Password as configured in docker-compose.yml under db
  • for Database-Host use only db - nothing else

Update the Docker container

  • run the update.sh with your cronjob every week on your host-system
chmod +x ./update_docker_container.sh 
crontab -e

insert:

00 02 * * 7 /opt/wordpress_docker/update_docker_container.sh > /dev/null 2>&1

About

Docker Template for Wordpress with mariaDB and varnish

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published