Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adnanhodzic/ansible-role-containerized-wordpress
Deploy & run Docker Compose project for WordPress instance with Let's Encrypt HTTPS encryption
https://github.com/adnanhodzic/ansible-role-containerized-wordpress
ansible ansible-role debian docker docker-compose docker-compose-template letsencrypt letsencrypt-certificates letsencrypt-utils mariadb-server mysql nginx php7-fpm ubuntu wordpress
Last synced: 26 days ago
JSON representation
Deploy & run Docker Compose project for WordPress instance with Let's Encrypt HTTPS encryption
- Host: GitHub
- URL: https://github.com/adnanhodzic/ansible-role-containerized-wordpress
- Owner: AdnanHodzic
- License: gpl-3.0
- Created: 2017-05-19T18:58:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-07-26T20:07:46.000Z (over 4 years ago)
- Last Synced: 2024-10-11T02:41:43.004Z (26 days ago)
- Topics: ansible, ansible-role, debian, docker, docker-compose, docker-compose-template, letsencrypt, letsencrypt-certificates, letsencrypt-utils, mariadb-server, mysql, nginx, php7-fpm, ubuntu, wordpress
- Homepage: https://galaxy.ansible.com/AdnanHodzic/containerized-wordpress
- Size: 59.6 KB
- Stars: 19
- Watchers: 3
- Forks: 32
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role: Containerized WordPress
=========This Ansible playbook will Deploy & run Docker Compose project for WordPress instance. It will also configure Let's Encrypt certificates for specified domain. It consists of 3 separate containers running:
* WordPress
* Nginx (enabled with Let's Encrypt HTTPS encryption)
* MySQLThis role was created as part of [containerized-wordpress-project](https://github.com/AdnanHodzic/containerized-wordpress-project)
Requirements
------------For this role to work, it is required to have have Docker and Docker Compose installed and setup. If you haven't done this already (manually), then you're required to install following role: [AdnanHodzic.docker-compose](https://galaxy.ansible.com/AdnanHodzic/docker-compose).
Role Variables
--------------This role comes with following variables defined in defaults/main.yml:
```
system_user: ubuntu
compose_project_dir: /home/{{ system_user }}/compose-wordpress
domain: foolcontrol.org
stage: staging
wp_version: 5.4.2
wp_db_user: admin
wp_db_psw: change-M3
db_root_psw: change-M3
wp_db_name: wordpress
wp_db_tb_pre: wp_
wp_db_host: mysql
```If role is run without changing these, WordPress instance with Nginx virtual host as well as Database settings will be setup with these values.
`stage` is an important value and its detailed explanation can be found on: [Let's Encrypt certificates (HTTPS encryption)](https://github.com/AdnanHodzic/containerized-wordpress-project/blob/master/README.md#5-lets-encrypt-certificates-https-encryption)
Blog post discussion:
* [Automated way of getting Let’s Encrypt certificates for WordPress using Docker + Ansible](http://foolcontrol.org/?p=2758)
* [Automagically deploy & run containerized WordPress (PHP7 FPM, Nginx, MariaDB) using Ansible + Docker on AWS](http://foolcontrol.org/?p=2002)Dependencies
------------**ToDo:**
Determine if "AdnanHodzic.docker-compose-setup" role should be set as role dependency. If yes, update this section of ReadMe + meta code.Example Playbook
----------------```
- hosts: servers
remote_user: "{{ system_user }}"
roles:
- { role: AdnanHodzic.containerized-wordpress }}
```License
-------GPLv3
Donate
-------Since I'm working on this project in free time, please consider supporting this project by making a donation of any amount!
##### PayPal
[![paypal](https://www.paypalobjects.com/en_US/NL/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=7AHCP5PU95S4Y&item_name=Contribution+for+work+on+containerized-wordpress-project¤cy_code=EUR&source=url)##### BitCoin
[bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87](bitcoin:bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87)[![bitcoin](https://foolcontrol.org/wp-content/uploads/2019/08/btc-donate-displaylink-debian.png)](bitcoin:bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87)