Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions wordpress-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ port 80 of the host as specified in the compose file.
$ docker compose up -d
Creating network "wordpress-mysql_default" with the default driver
Creating volume "wordpress-mysql_db_data" with default driver

...
Creating wordpress-mysql_db_1 ... done
Creating wordpress-mysql_wordpress_1 ... done
Creating wordpress-mysql-phpmyadmin-1w ... done
```


Expand All @@ -54,9 +56,12 @@ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5fbb4181a069 wordpress:latest "docker-entrypoint.s…" 35 seconds ago Up 34 seconds 0.0.0.0:80->80/tcp wordpress-mysql_wordpress_1
e0884a8d444d mysql:8.0.19 "docker-entrypoint.s…" 35 seconds ago Up 34 seconds 3306/tcp, 33060/tcp wordpress-mysql_db_1
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

```

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

![page](output.jpg)

Expand Down
13 changes: 13 additions & 0 deletions wordpress-mysql/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,21 @@ services:
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_PASSWORD=wordpress
- WORDPRESS_DB_NAME=wordpress
phpmyadmin:
image: wordpress:latest
depends_on:
- db
environment:
- PMA_HOST=db
- PMA_USER=wordpress
- PMA_PASSWORD=wordpress
ports:
- 8080:80
restart: always

volumes:
db_data:
wp_data: