parent
1e5e0226c5
commit
10f3de4def
1 changed files with 33 additions and 32 deletions
@ -1,33 +1,34 @@ |
|||||||
- ## Standalone Wordpress Container Docs |
- ## Standalone Wordpress Container Docs |
||||||
- `git clone https://git.libre.audio/EquilibrateIT/ansible_wordpress-standalone.git` |
- `git clone https://git.libre.audio/EquilibrateIT/ansible_wordpress-standalone.git` |
||||||
- `cd ansible_wordpress-standalone` |
- `cd ansible_wordpress-standalone` |
||||||
- *Optional* - rename ansible/playbooks/equilibrate.com.yml to match your domain name |
- *Optional* - rename ansible/playbooks/equilibrate.com.yml to match your domain name |
||||||
- `ansible-playbook ansible/playbooks/yoursite.com.yml` |
- `ansible-playbook ansible/playbooks/yoursite.com.yml` |
||||||
- `ssh yoursite.com` |
- `ssh yoursite.com` |
||||||
- `su - wordpress` |
- `su - wordpress` |
||||||
- *Optional* |
- *Optional* |
||||||
a. Remove firewall rule for port 80 |
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"` |
`firewall-cmd --zone=public --remove-rich-rule rule family="ipv4" forward-port port="80" protocol="tcp" to-port="8080"` |
||||||
b. Create ssl certificates |
b. Create ssl certificates |
||||||
`certbot certonly -d yoursite.com` |
`certbot certonly -d yoursite.com` |
||||||
c. Copy the certificates where the container build will pick them up |
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/privkey.pem /home/wordpress/wordpress/apache/` |
||||||
`mv /etc/letsencrypt/live/yoursite.com/fullchain.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 |
||||||
a. Generate self-signed certificates |
`firewall-cmd --reload` |
||||||
`cd ~/wordpress/apache` |
- *Optional* |
||||||
`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"` |
a. Generate self-signed certificates |
||||||
- Create ~/.env file |
`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"` |
||||||
MYSQL_ROOT_PASSWORD="<YourSecureRootPassword>" |
- Create ~/.env file |
||||||
MYSQL_DATABASE=wordpress |
``` |
||||||
MYSQL_USER=wordpress |
MYSQL_ROOT_PASSWORD="<YourSecureRootPassword>" |
||||||
MYSQL_PASSWORD="<YourSecurePassword>" |
MYSQL_DATABASE=wordpress |
||||||
|
MYSQL_USER=wordpress |
||||||
WORDPRESS_DB_NAME=wordpress |
MYSQL_PASSWORD="<YourSecurePassword>" |
||||||
WORDPRESS_DB_HOST=db:3306 |
|
||||||
WORDPRESS_DB_USER=wordpress |
WORDPRESS_DB_NAME=wordpress |
||||||
WORDPRESS_DB_PASSWORD="<YourSecurePassword>" |
WORDPRESS_DB_HOST=db:3306 |
||||||
``` |
WORDPRESS_DB_USER=wordpress |
||||||
- `cd ~` |
WORDPRESS_DB_PASSWORD="<YourSecurePassword>" |
||||||
`podman-compose up -d` |
``` |
||||||
|
- `cd ~` |
||||||
|
Loading…
Reference in new issue