From 56d23925bc3d772f3e8ac9f045b05af1300a3bbd Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Wed, 30 Oct 2024 14:46:20 +0100
Subject: [PATCH] update docs

---
 .../20_Templates.md"                              |  1 -
 "docs/50_\342\214\250\357\270\217_Usage.md"       | 15 ++++++++++++---
 2 files changed, 12 insertions(+), 4 deletions(-)

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 7984943..df515a0 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 8284eb1..4fefa10 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.
-- 
GitLab