Skip to content

Commit 62289e7

Browse files
committed
Update wordpress-mysql-compose.yml README.md
Signed-off-by: uttam pun <[email protected]>
1 parent 18f59bd commit 62289e7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

wordpress-mysql/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ port 80 of the host as specified in the compose file.
4040
$ docker compose up -d
4141
Creating network "wordpress-mysql_default" with the default driver
4242
Creating volume "wordpress-mysql_db_data" with default driver
43+
4344
...
4445
Creating wordpress-mysql_db_1 ... done
4546
Creating wordpress-mysql_wordpress_1 ... done
47+
Creating wordpress-mysql-phpmyadmin-1w ... done
4648
```
4749

4850

@@ -54,9 +56,12 @@ $ docker ps
5456
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5557
5fbb4181a069 wordpress:latest "docker-entrypoint.s…" 35 seconds ago Up 34 seconds 0.0.0.0:80->80/tcp wordpress-mysql_wordpress_1
5658
e0884a8d444d mysql:8.0.19 "docker-entrypoint.s…" 35 seconds ago Up 34 seconds 3306/tcp, 33060/tcp wordpress-mysql_db_1
59+
6dfd49ab5b62 wordpress:latest "docker-entrypoint.s…" Less than a second ago Up 2 seconds 0.0.0.0:8080->80/tcp, [::]:8080->80/tcp wordpress-mysql-phpmyadmin-1
60+
5761
```
5862

5963
Navigate to `http://localhost:80` in your web browser to access WordPress.
64+
Navigate to `http://localhost:8080` in your web browser to access phpMyAdmin.
6065

6166
![page](output.jpg)
6267

wordpress-mysql/compose.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,21 @@ services:
2626
- WORDPRESS_DB_USER=wordpress
2727
- WORDPRESS_DB_PASSWORD=wordpress
2828
- WORDPRESS_DB_NAME=wordpress
29+
phpmyadmin:
30+
image: wordpress:latest
31+
depends_on:
32+
- db
33+
environment:
34+
- PMA_HOST=db
35+
- PMA_USER=wordpress
36+
- PMA_PASSWORD=wordpress
37+
ports:
38+
- 8080:80
39+
restart: always
40+
2941
volumes:
3042
db_data:
43+
wp_data:
3144

3245

3346

0 commit comments

Comments
 (0)