Skip to content
Snippets Groups Projects
Commit 56d23925 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs

parent 8ea20c38
No related branches found
No related tags found
1 merge request!23docker init script: added start of mysql in the database container
......@@ -31,7 +31,6 @@ Optional changes:
# (2) run "docker-compose up" to startup
#
# ======================================================================
version: '3.9'
networks:
{{APP_NAME}}-network:
......
......@@ -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.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment