Skip to content
This repository was archived by the owner on Jun 29, 2025. It is now read-only.

Commit 4ced858

Browse files
committed
Update README.md
1 parent e07ad0a commit 4ced858

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ To run a container from the image, use the following command:
2020

2121
```bash
2222
docker run -d --name wordpress \
23-
-e WORDPRESS_HOST=your-host-ip \
2423
-e WORDPRESS_DATABASE_HOST=your-database-host \
2524
-v /path/to/volume/:/var/www/wordpress \
2625
-p 80:80 \
2726
nayeonyny/wordpress:latest
2827
```
2928
#### Example :
3029
```bash
31-
docker run -d --name wordpress -p 80:80 -e WORDPRESS_DATABASE_HOST=172.28.6.193 -e WORDPRESS_HOST=172.28.6.193 -v /home/probu/wptest:/var/www/wordpress nayeonyny/wordpress:latest
30+
docker run -d --name wordpress -p 80:80 -e WORDPRESS_DATABASE_HOST=172.28.6.193 -v /home/probu/wptest:/var/www/wordpress nayeonyny/wordpress:latest
3231
```
3332

3433
## Environment Variables
@@ -42,7 +41,7 @@ The following environment variables can be set when running the Docker container
4241
| WORDPRESS\_DATABASE\_HOST | localhost | example.com or 64.23.50.120 | The ip address of the WordPress database, can be private, public or you can use a domain. |
4342
| WORDPRESS\_HOST | localhost | example.com or 64.23.50.120 | The host of your WordPress site. If this is not set or is empty, it will default to <strong>localhost</strong>. This means that all resources will only be available on localhost. To make your WordPress site work online, change this variable to the public IP address or domain name of your host. |
4443

45-
⚠️ **Important :** The vars `WORDPRESS_DATABASE_HOST` and `WORDPRESS_HOST` it can't be localhost you must change this variable or the container will be stopped, if you have a database container change to host or container ip. ⚠️
44+
⚠️ **Important :** The var `WORDPRESS_DATABASE_HOST` it can't be `localhost` you must change this variable or the container will be stopped, if you have a database container change to host or container ip. ⚠️
4645

4746
### How to do :
4847

0 commit comments

Comments
 (0)