danvyr / wordpress

Wordpress with redis, nginx and certbot (letsencrypt), installing with ansible in docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wordpress with redis, nginx and certbot (letsencrypt), installing with ansible in docker-compose

About

Quick installation wordpress using Ansible on Ubuntu.

What Ansible script is doing:

  1. Adding new user to Ubuntu Linux
  2. Install docker compose
  3. Up Wordpress, nginx, redis, certbot and MariaDB containers
  4. Configure domain and redis in wp-config.php
  5. Add to cron cert-bot for renewing certificates for domain.
  6. Some files permissions fixes

How to use

  1. Edit your DNS zone to bound your domain and your IP, so Let's Encrypt could check that you have rights on your domain name.
  2. Put your variables in ansible/roles/wordpress/vars/main.yaml
  3. Add you server to inventory.ini
  4. Run ansible: ansible-playbook site.yaml -i inventory.ini
  5. Cert-bot should successfully received certificate docker logs certbot
  6. After that uncomment NGINX configuration for SSL ansible/roles/wordpress/template/nginx.conf.j2
  7. Running ansible job again or uncomment SSL block in /wordpress/nginx-conf/nginx.conf on server and execute docker restart webserver

Wordpress plugins

  1. Object Cache - for redis caching (need to enable caching on after activation)
  2. WP Super Cache - html caching (need to enable caching on after activation)
  3. Classic Editor
  4. All In One WP Security

Wordpress tips

  1. Move admin page with plugin All In One WP Security

About

Wordpress with redis, nginx and certbot (letsencrypt), installing with ansible in docker-compose

License:Other


Languages

Language:Jinja 100.0%