diff --git "a/docs/40_\342\232\231\357\270\217_Configuration/20_Templates.md" "b/docs/40_\342\232\231\357\270\217_Configuration/20_Templates.md" index 798494339a773ff2d17e4cffdbc090cee5615f93..df515a05969a43c28d71905ee25bfcb6fb1aad76 100644 --- "a/docs/40_\342\232\231\357\270\217_Configuration/20_Templates.md" +++ "b/docs/40_\342\232\231\357\270\217_Configuration/20_Templates.md" @@ -31,7 +31,6 @@ Optional changes: # (2) run "docker-compose up" to startup # # ====================================================================== -version: '3.9' networks: {{APP_NAME}}-network: diff --git "a/docs/50_\342\214\250\357\270\217_Usage.md" "b/docs/50_\342\214\250\357\270\217_Usage.md" index 8284eb1cca9e69f8e7da4528ff5f58e283c75f1b..4fefa106c249575eadef6de7a60214080bf0548e 100644 --- "a/docs/50_\342\214\250\357\270\217_Usage.md" +++ "b/docs/50_\342\214\250\357\270\217_Usage.md" @@ -13,7 +13,7 @@ The script supports command line parameters to use it in scripts. Use `-h` to ge ```txt -INITIALIZER FOR DOCKER APP v1.20 +INITIALIZER FOR DOCKER APP v1.22 A helper script written in Bash to bring up a PHP+Mysql application in docker. @@ -49,12 +49,14 @@ MENU KEYS: r - remove containers docker-compose rm -f s - shutdown containers docker-compose stop - i - Import more into infos + m - more infos o - open app [my_new_app] http://localhost:8001/ c - console (bash) p - console check with php linter + d - Dump container database D - Import Dump into container database + M - Open Mysql client in database container q - quit @@ -152,4 +154,11 @@ This feature works if the database container is running. You get a file selection of the `./dbdumps/` directory. The selected sql or sql.gz file will be imported. -**Hint**: With this feature you can import a dump from a live system into your dev environment too. Just copy its dump into `./dbdumps/`. \ No newline at end of file +**Hint**: With this feature you can import a dump from a live system into your dev environment too. Just copy its dump into `./dbdumps/`. + +#### M - Open Mysql client in database container + +With docker exec in the database container the mysql client `mysql` will be started with root credentials on the application database. +This is faster than opening a shell on the container and start `mysql -u root -p<password> <dbname>` where you have to search the credentials first. + +Because of the usage of docker exec it works too when the database port is not exposed.