Update README.md
This commit is contained in:
74
README.md
74
README.md
@@ -38,8 +38,8 @@
|
||||
# Navigation
|
||||
|
||||
- [Prerequisite](#prerequisite)
|
||||
- [Creating a Custom Network](#creating-a-custom-network)
|
||||
- [Folder Organization](#folder-organization)
|
||||
- [Creating a Custom Network](#creating-a-custom-network)
|
||||
- [Configuring .env file](#configuring-env-file)
|
||||
- [Configuring docker-compose.yml file](#configuring-docker-composeyml-file)
|
||||
- [Execute and Test](#execute-and-test)
|
||||
@@ -69,10 +69,18 @@
|
||||
|
||||
- **For very nice organization, I recommend keeping the ' wp- ' part at the beginning of the naming scheme so you can easily filter out containers and find what you're looking for very quickly and neatly**
|
||||
|
||||
- **The password to extract all of the tutorial files from the zip file is: JHammaH**
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
# Folder Organization
|
||||
|
||||
- **Now you'll need to organize the folder names, which is very important**
|
||||
|
||||
- **Create a folder called ' wordpress ' in an easy to find directory like: '** c:/docker/**wordpress '**
|
||||
|
||||
- **The password to extract all of the tutorial files from the zip file is: JHammaH**
|
||||
|
||||
- **Extract the zip file called ' extract-this-in-your-wordpress-folder.zip ' to inside the new ' wordpress ' folder. You will see a .bat file and a folder called ' wp-new-site '**
|
||||
|
||||
- **Inside the ' nwp-new-site ' folder, there will be three files. A Dockerfile, .env file, and a .yml file**
|
||||
@@ -85,6 +93,25 @@
|
||||
</a>
|
||||
</p>
|
||||
|
||||
- **Copy the ' wp-new-site ' folder and paste it in the same directory and it should create a new folder called ' wp-new-site - Copy '. This will leave the ' wp-new-site ' folder untouched so it can remain a template that you can copy/paste as many times as you want for any new site you want to launch**
|
||||
|
||||
- **Rename the new folder you just created, ' wp-new-site - Copy ', to match your specific domain. Ex. ' wp-website-com '. You're keeping the 'wp-' part for easy filtering. You're changing the word 'new' to whatever your domain is. Then you're changing the word 'site' to whatever your domain extention is**
|
||||
|
||||
- So here are a couple of examples:
|
||||
- For 'jhammah.com', you would change 'wp-new-site' to 'wp-jhammah-com'
|
||||
- For 'takedownthe.gov', you would change 'wp-new-site' to 'wp-takedownthe-gov'
|
||||
- For 'dronework.pro', you would change 'wp-new-site' to 'wp-dronework-pro'
|
||||
|
||||
- **For this tutorial, I'll be creating a site for the domain I own, scrapyardplays.com, which means I'll change 'wp-new-site' to 'wp-scrapyardplays-com'**
|
||||
|
||||
<p align="center">
|
||||
<a href="https://tip.jhammah.com">
|
||||
<picture>
|
||||
<img src="https://jhammah.com/wp-content/uploads/2025/06/folder-organize-1.png" alt="Screenshot" width="1100">
|
||||
</picture>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<br>
|
||||
@@ -121,33 +148,6 @@
|
||||
|
||||
<br>
|
||||
|
||||
# Folder Organization
|
||||
|
||||
- **Now you'll need to organize the folder names, which is very important**
|
||||
|
||||
- **Copy the ' wp-new-site ' folder and paste it in the same directory and it should create a new folder called ' wp-new-site - Copy '. This will leave the ' wp-new-site ' folder untouched so it can remain a template that you can copy/paste as many times as you want for any new site you want to launch**
|
||||
|
||||
- **Rename the new folder you just created, ' wp-new-site - Copy ', to match your specific domain. Ex. ' wp-website-com '. You're keeping the 'wp-' part for easy filtering. You're changing the word 'new' to whatever your domain is. Then you're changing the word 'site' to whatever your domain extention is**
|
||||
|
||||
- So here are a couple of examples:
|
||||
- For 'jhammah.com', you would change 'wp-new-site' to 'wp-jhammah-com'
|
||||
- For 'takedownthe.gov', you would change 'wp-new-site' to 'wp-takedownthe-gov'
|
||||
- For 'dronework.pro', you would change 'wp-new-site' to 'wp-dronework-pro'
|
||||
|
||||
- **For this tutorial, I'll be creating a site for the domain I own, scrapyardplays.com, which means I'll change 'wp-new-site' to 'wp-scrapyardplays-com'**
|
||||
|
||||
<p align="center">
|
||||
<a href="https://tip.jhammah.com">
|
||||
<picture>
|
||||
<img src="https://jhammah.com/wp-content/uploads/2025/06/folder-organize-1.png" alt="Screenshot" width="1100">
|
||||
</picture>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
# Configuring .env file
|
||||
|
||||
- **This is the .env file. Here you will want to change the default names of things to match your new site and folder naming structure**
|
||||
@@ -316,11 +316,11 @@ docker-compose up -d
|
||||
|
||||
- **Now it's time to get this website attached to a domain you own as well as link it to it's Redis server to make it super fast**
|
||||
|
||||
- **Assuming you own a domain in Cloudflare and are using Caddy as your reverse proxy, the rest of the steps apply to you.
|
||||
- **Assuming you own a domain in Cloudflare and are using Caddy as your reverse proxy, the rest of the steps apply to you.**
|
||||
|
||||
- **If you're using a different domain host and reverse proxy, these steps will serve as suggestions in which you will need to do research on how to acheive this with your specific setup.
|
||||
- **If you're using a different domain host and reverse proxy, these steps will serve as suggestions in which you will need to do research on how to acheive this with your specific setup.**
|
||||
|
||||
- **Ultimately you'll route your reverse proxy to this localhost:#### container if you want a domain URL to reach it.**
|
||||
- **Ultimately you'll route your domain using your reverse proxy to this localhost:#### container if you want a domain URL to reach it.**
|
||||
|
||||
- **So In Docker, click on your domain's stack, then click the 3 dots next to your wordpress container and select 'Open in Terminal'**
|
||||
|
||||
@@ -342,9 +342,9 @@ docker-compose up -d
|
||||
|
||||
|
||||
|
||||
- **Enter this command and it will have you start editing the wp-config.php file: **
|
||||
- **Enter this command and it will have you start editing the wp-config.php file**
|
||||
|
||||
```php
|
||||
```bash
|
||||
nano wp-config.php
|
||||
```
|
||||
|
||||
@@ -356,7 +356,9 @@ nano wp-config.php
|
||||
</a>
|
||||
</p>
|
||||
|
||||
- **Here is the code that you will copy/paste into this config file. You'll want to make the changes as I notate to match what your website name is as well as the Redis server #**
|
||||
- **Once inside the .php file, you'll want to copy/paste into this config file AFTER the '<?php' line!**
|
||||
|
||||
- ** Before copying, you'll first need to make the changes that I notated to match what your website name is as well as the Redis server #**
|
||||
|
||||
```php
|
||||
// Change the URL to match your actual domain address. Example for ' website.com '
|
||||
@@ -394,7 +396,7 @@ define('WP_REDIS_READ_TIMEOUT', 1);
|
||||
</a>
|
||||
</p>
|
||||
|
||||
- **Now you WILL NOT be able to reach your website unless you access it via the specified domain so you'll need **
|
||||
- **Now you WILL NOT be able to reach your website unless you access it via the specified domain so you'll need to configure your reverse proxy. In my case, that will be Caddy.**
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user