|
|
|
@ -1,11 +1,11 @@ |
|
|
|
|
- ## Standalone Wordpress Container Docs |
|
|
|
|
- `git clone https://git.libre.audio/EquilibrateIT/ansible_wordpress-standalone.git` |
|
|
|
|
- `cd ansible_wordpress-standalone` |
|
|
|
|
- *Optional* - rename ansible/playbooks/equilibrate.com.yml to match your domain name |
|
|
|
|
- `ansible-playbook ansible/playbooks/yoursite.com.yml` |
|
|
|
|
- `ssh yoursite.com` |
|
|
|
|
- `su - wordpress` |
|
|
|
|
- *Optional* |
|
|
|
|
- `git clone https://git.libre.audio/EquilibrateIT/ansible_wordpress-standalone.git` |
|
|
|
|
- `cd ansible_wordpress-standalone` |
|
|
|
|
- *Optional* - rename ansible/playbooks/equilibrate.com.yml to match your domain name |
|
|
|
|
- `ansible-playbook ansible/playbooks/yoursite.com.yml` |
|
|
|
|
- `ssh yoursite.com` |
|
|
|
|
- `su - wordpress` |
|
|
|
|
- *Optional* |
|
|
|
|
a. Remove firewall rule for port 80 |
|
|
|
|
`firewall-cmd --zone=public --remove-rich-rule rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"` |
|
|
|
|
b. Create ssl certificates |
|
|
|
@ -13,11 +13,13 @@ |
|
|
|
|
c. Copy the certificates where the container build will pick them up |
|
|
|
|
`mv /etc/letsencrypt/live/yoursite.com/privkey.pem /home/wordpress/wordpress/apache/` |
|
|
|
|
`mv /etc/letsencrypt/live/yoursite.com/fullchain.pem /home/wordpress/wordpress/apache/` |
|
|
|
|
- *Optional* |
|
|
|
|
d. Reload firewall rules to put the port 80 forward rule back in place |
|
|
|
|
`firewall-cmd --reload` |
|
|
|
|
- *Optional* |
|
|
|
|
a. Generate self-signed certificates |
|
|
|
|
`cd ~/wordpress/apache` |
|
|
|
|
`openssl req -x509 -newkey rsa:4096 -keyout privkey.pem -out fullchain.pem -sha256 -days 3650 -nodes -subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname"` |
|
|
|
|
- Create ~/.env file |
|
|
|
|
- Create ~/.env file |
|
|
|
|
``` |
|
|
|
|
MYSQL_ROOT_PASSWORD="<YourSecureRootPassword>" |
|
|
|
|
MYSQL_DATABASE=wordpress |
|
|
|
@ -29,5 +31,4 @@ |
|
|
|
|
WORDPRESS_DB_USER=wordpress |
|
|
|
|
WORDPRESS_DB_PASSWORD="<YourSecurePassword>" |
|
|
|
|
``` |
|
|
|
|
- `cd ~` |
|
|
|
|
`podman-compose up -d` |
|
|
|
|
- `cd ~` |
|
|
|
|