{"id":14969106,"url":"https://github.com/adnanhodzic/ansible-role-containerized-wordpress","last_synced_at":"2025-10-26T06:31:06.065Z","repository":{"id":145426412,"uuid":"91836661","full_name":"AdnanHodzic/ansible-role-containerized-wordpress","owner":"AdnanHodzic","description":"Deploy \u0026 run Docker Compose project for WordPress instance with Let's Encrypt HTTPS encryption","archived":false,"fork":false,"pushed_at":"2020-07-26T20:07:46.000Z","size":61,"stargazers_count":19,"open_issues_count":2,"forks_count":33,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T16:12:00.173Z","etag":null,"topics":["ansible","ansible-role","debian","docker","docker-compose","docker-compose-template","letsencrypt","letsencrypt-certificates","letsencrypt-utils","mariadb-server","mysql","nginx","php7-fpm","ubuntu","wordpress"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/AdnanHodzic/containerized-wordpress","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AdnanHodzic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"AdnanHodzic"}},"created_at":"2017-05-19T18:58:03.000Z","updated_at":"2024-04-02T17:43:18.000Z","dependencies_parsed_at":"2023-06-03T18:00:21.169Z","dependency_job_id":null,"html_url":"https://github.com/AdnanHodzic/ansible-role-containerized-wordpress","commit_stats":{"total_commits":80,"total_committers":2,"mean_commits":40.0,"dds":0.03749999999999998,"last_synced_commit":"3d4c7b42c41b0d62379233c533fcb8fba241a4a9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fansible-role-containerized-wordpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fansible-role-containerized-wordpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fansible-role-containerized-wordpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdnanHodzic%2Fansible-role-containerized-wordpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdnanHodzic","download_url":"https://codeload.github.com/AdnanHodzic/ansible-role-containerized-wordpress/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238276061,"owners_count":19445340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","debian","docker","docker-compose","docker-compose-template","letsencrypt","letsencrypt-certificates","letsencrypt-utils","mariadb-server","mysql","nginx","php7-fpm","ubuntu","wordpress"],"created_at":"2024-09-24T13:41:08.130Z","updated_at":"2025-10-26T06:31:00.777Z","avatar_url":"https://github.com/AdnanHodzic.png","language":null,"funding_links":["https://github.com/sponsors/AdnanHodzic","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=7AHCP5PU95S4Y\u0026item_name=Contribution+for+work+on+containerized-wordpress-project\u0026currency_code=EUR\u0026source=url"],"categories":[],"sub_categories":[],"readme":"Ansible Role: Containerized WordPress\n=========\n\nThis Ansible playbook will Deploy \u0026 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:\n* WordPress\n* Nginx (enabled with Let's Encrypt HTTPS encryption)\n* MySQL\n\nThis role was created as part of [containerized-wordpress-project](https://github.com/AdnanHodzic/containerized-wordpress-project)\n\nRequirements\n------------\n\nFor 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).\n\nRole Variables\n--------------\n\nThis role comes with following variables defined in defaults/main.yml:\n\n```\nsystem_user: ubuntu\ncompose_project_dir: /home/{{ system_user }}/compose-wordpress\ndomain: foolcontrol.org\nstage: staging\nwp_version: 5.4.2\nwp_db_user: admin\nwp_db_psw: change-M3\ndb_root_psw: change-M3\nwp_db_name: wordpress\nwp_db_tb_pre: wp_\nwp_db_host: mysql\n```\n\nIf role is run without changing these, WordPress instance with Nginx virtual host as well as Database settings will be setup with these values. \n\n`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)\n\nBlog post discussion: \n* [Automated way of getting Let’s Encrypt certificates for WordPress using Docker + Ansible](http://foolcontrol.org/?p=2758)\n* [Automagically deploy \u0026 run containerized WordPress (PHP7 FPM, Nginx, MariaDB) using Ansible + Docker on AWS](http://foolcontrol.org/?p=2002)\n\n\nDependencies\n------------\n\n**ToDo:**\nDetermine if \"AdnanHodzic.docker-compose-setup\" role should be set as role dependency. If yes, update this section of ReadMe + meta code.\n\nExample Playbook\n----------------\n\n```\n- hosts: servers\n  remote_user: \"{{ system_user }}\"\n  roles:\n    - { role: AdnanHodzic.containerized-wordpress }}  \n```\n\nLicense\n-------\n\nGPLv3\n\nDonate\n-------\n\nSince I'm working on this project in free time, please consider supporting this project by making a donation of any amount!\n\n##### PayPal\n[![paypal](https://www.paypalobjects.com/en_US/NL/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=7AHCP5PU95S4Y\u0026item_name=Contribution+for+work+on+containerized-wordpress-project\u0026currency_code=EUR\u0026source=url)\n\n##### BitCoin\n[bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87](bitcoin:bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87)\n\n[![bitcoin](https://foolcontrol.org/wp-content/uploads/2019/08/btc-donate-displaylink-debian.png)](bitcoin:bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnanhodzic%2Fansible-role-containerized-wordpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadnanhodzic%2Fansible-role-containerized-wordpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadnanhodzic%2Fansible-role-containerized-wordpress/lists"}