Skip to content

Commit aef2409

Browse files
committed
Improve docker-compose
- Update mysql user/pass to dev/dev - Improve README
1 parent f78334f commit aef2409

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ Docker running Nginx, PHP-FPM, MySQL and PHPMyAdmin.
88

99
## Images to use
1010

11-
* [Nginx](https://hub.docker.com/_/nginx/) (181.85 MB)
12-
* [MySQL](https://hub.docker.com/_/mysql/) (400.2 MB)
13-
* [PHP-FPM](https://hub.docker.com/r/nanoninja/php-fpm/) (635.9 MB)
14-
* [Composer](https://hub.docker.com/r/composer/composer/) (635.7 MB)
15-
* [PHPMyAdmin](https://hub.docker.com/r/phpmyadmin/phpmyadmin/) (102.2 MB)
16-
* [Generate Certificate](https://hub.docker.com/r/jacoelho/generate-certificate/) (9.07 MB)
11+
* [Nginx](https://hub.docker.com/_/nginx/)
12+
* [MySQL](https://hub.docker.com/_/mysql/)
13+
* [PHP-FPM](https://hub.docker.com/r/nanoninja/php-fpm/)
14+
* [Composer](https://hub.docker.com/r/composer/composer/)
15+
* [PHPMyAdmin](https://hub.docker.com/r/phpmyadmin/phpmyadmin/)
16+
* [Generate Certificate](https://hub.docker.com/r/jacoelho/generate-certificate/)
1717

1818
## Start using it
1919

@@ -38,7 +38,7 @@ Docker running Nginx, PHP-FPM, MySQL and PHPMyAdmin.
3838
## Directory tree
3939

4040
```sh
41-
.
41+
docker-nginx-php-mysql
4242
├── bin
4343
│   └── linux
4444
│   └── clean.sh
@@ -67,7 +67,7 @@ Docker running Nginx, PHP-FPM, MySQL and PHPMyAdmin.
6767
```php
6868
<?php
6969
$dsn = 'mysql:host=mysql;dbname=test;charset=utf8;port=3306';
70-
$pdo = new PDO($dsn, 'root', 'root');
70+
$pdo = new PDO($dsn, 'dev', 'dev');
7171
?>
7272
```
7373

@@ -120,9 +120,9 @@ $ docker exec mysql sh -c 'exec mysqldump test -uroot -p"$MYSQL_ROOT_PASSWORD"'
120120
Edit nginx file **etc/nginx/default.conf** and uncomment the server section.
121121

122122
```nginx
123-
server {
124-
...
125-
}
123+
# server {
124+
# ...
125+
# }
126126
```
127127

128128
## Cleaning project

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ services:
4343
- MYSQL_DATABASE=test
4444
- MYSQL_ROOT_PASSWORD=root
4545
- MYSQL_USER=dev
46-
- MYSQL_PASSWORD=1234
46+
- MYSQL_PASSWORD=dev
4747
ports:
4848
- 3306:3306
4949
volumes:

0 commit comments

Comments
 (0)