Skip to content

Commit 119b7e3

Browse files
committed
Add a phpMyAdmin container
You can now access the database via phpMyAdmin on port 8080 with the credentials you find in the docker-compose.yml Closes issue andreaskoch#18
1 parent b2a6d97 commit 119b7e3

File tree

4 files changed

+36
-8
lines changed

4 files changed

+36
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
8+
## [Unreleased]
9+
10+
### Added
11+
- Add a phyMyAdmin container
12+
713
## [v0.11.0] - 2016-11-09
814

915
### Changed

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,16 @@ Once the installation is finished the installer will print the URL and the crede
8484

8585
```
8686
...
87-
installer_1 | Frontend: http://dockerized-magento.local/
88-
installer_1 | Backend: http://dockerized-magento.local/admin
89-
installer_1 | - Username: admin
90-
installer_1 | - Password: password123
87+
installer_1 | phpMyAdmin: http://dockerized-magento.local:8080
88+
installer_1 | - Username: root
89+
installer_1 | - Password: pw
90+
installer_1 |
91+
installer_1 | Backend: http://dockerized-magento.local/admin
92+
installer_1 | - Username: admin
93+
installer_1 | - Password: password123
94+
installer_1 |
95+
installer_1 | Frontend: http://dockerized-magento.local/
96+
9197
```
9298

9399
[![Animation: Installation and first project start](documentation/installation-and-first-start-animation.gif)](https://s3.amazonaws.com/andreaskoch/dockerized-magento/installation/Dockerized-Magento-Installation-Linux-no-sound.mp4)
@@ -126,9 +132,10 @@ The dockerized Magento project consists of the following components:
126132
1. a [PHP](docker-images/php/Dockerfile) image
127133
2. a [Nginx](docker-images/nginx/Dockerfile) web server image
128134
3. a [Solr](docker-images/solr/Dockerfile) search server
129-
4. a standard [MySQL](https://registry.hub.docker.com/_/mysql/) database server image
130-
5. multiple instances of the standard [Redis](https://registry.hub.docker.com/_/redis/) docker image
131-
6. and a [Installer](docker-images/installer/Dockerfile) image which contains all tools for installing the project from scratch using an [install script](docker-images/installer/bin/install.sh)
135+
4. a standard [MySQL](https://hub.docker.com/_/mysql/) database server image
136+
5. multiple instances of the standard [Redis](https://hub.docker.com/_/redis/) docker image
137+
6. a standard [phpMyAdmin](https://hub.docker.com/r/phpmyadmin/phpmyadmin/) image that allows you to access the database on port 8080
138+
7. and a [Installer](docker-images/installer/Dockerfile) image which contains all tools for installing the project from scratch using an [install script](docker-images/installer/bin/install.sh)
132139
- a **[shell script](magento)** for controlling the project: [`./magento <action>`](magento)
133140
- a [composer-file](composer.json) for managing the **Magento modules**
134141
- and the [docker-compose.yml](docker-compose.yml)-file which connects all components

config/installer/bin/install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ function printLogonInformation() {
2626
frontendUrl="$baseUrl/"
2727
backendUrl="$baseUrl/admin"
2828

29-
echo "Frontend: $frontendUrl"
29+
echo ""
30+
echo "phpMyAdmin: $baseUrl:8080"
31+
echo " - Username: ${MYSQL_USER}"
32+
echo " - Password: ${MYSQL_PASSWORD}"
33+
echo ""
3034
echo "Backend: $backendUrl"
3135
echo " - Username: ${ADMIN_USERNAME}"
3236
echo " - Password: ${ADMIN_PASSWORD}"
37+
echo ""
38+
echo "Frontend: $frontendUrl"
3339
}
3440

3541

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,12 @@ fullpagecache:
7474
image: redis:latest
7575
sessions:
7676
image: redis:latest
77+
phpmyadmin:
78+
image: phpmyadmin/phpmyadmin
79+
ports:
80+
- "8080:80"
81+
links:
82+
- "mysql:mysql"
83+
environment:
84+
PMA_HOST: "mysql"
85+
PMA_PORT: 3306

0 commit comments

Comments
 (0)