parent
66754dcdeb
commit
1e5e0226c5
1 changed files with 35 additions and 17 deletions
@ -1,17 +1,35 @@ |
|||||||
## EquilibrateIT.com |
- ## Standalone Wordpress Container Docs |
||||||
|
- `git clone https://git.libre.audio/EquilibrateIT/ansible_wordpress-standalone.git` |
||||||
--- |
- `cd ansible_wordpress-standalone` |
||||||
#### ansible/playbooks/equilibrateit.com.yml |
- *Optional* - rename ansible/playbooks/equilibrate.com.yml to match your domain name |
||||||
Roles: |
- `ansible-playbook ansible/playbooks/yoursite.com.yml` |
||||||
- `podman-host` for container host platform |
- `ssh yoursite.com` |
||||||
- `repo-epel` for certbot dependency |
- `su - wordpress` |
||||||
- `certbot` for site ssl cert |
- *Optional* |
||||||
- `podman-wordpress` for containerized wordpress platform |
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 |
||||||
#### tofu/main.tf |
`certbot certonly -d yoursite.com` |
||||||
linode Provider |
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/` |
||||||
#### tofu/variables.tf |
d. Reload firewall rules to put the port 80 forward rule back in place |
||||||
linode instance resource variables |
`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 |
||||||
|
``` |
||||||
|
MYSQL_ROOT_PASSWORD="<YourSecureRootPassword>" |
||||||
|
MYSQL_DATABASE=wordpress |
||||||
|
MYSQL_USER=wordpress |
||||||
|
MYSQL_PASSWORD="<YourSecurePassword>" |
||||||
|
|
||||||
|
WORDPRESS_DB_NAME=wordpress |
||||||
|
WORDPRESS_DB_HOST=db:3306 |
||||||
|
WORDPRESS_DB_USER=wordpress |
||||||
|
WORDPRESS_DB_PASSWORD="<YourSecurePassword>" |
||||||
|
``` |
||||||
|
- `cd ~` |
||||||
|
`podman-compose up -d` |
||||||
|
Loading…
Reference in new issue