Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-php-starterkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
docker-php-starterkit
Commits
56d23925
Commit
56d23925
authored
5 months ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
8ea20c38
No related branches found
No related tags found
1 merge request
!23
docker init script: added start of mysql in the database container
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/40_⚙️_Configuration/20_Templates.md
+0
-1
0 additions, 1 deletion
docs/40_⚙️_Configuration/20_Templates.md
docs/50_⌨️_Usage.md
+12
-4
12 additions, 4 deletions
docs/50_⌨️_Usage.md
with
12 additions
and
5 deletions
docs/40_⚙️_Configuration/20_Templates.md
+
0
−
1
View file @
56d23925
...
...
@@ -31,7 +31,6 @@ Optional changes:
# (2) run "docker-compose up" to startup
#
# ======================================================================
version
:
'
3.9'
networks
:
{{
APP_NAME
}}
-network
:
...
...
This diff is collapsed.
Click to expand it.
docs/50_⌨️_Usage.md
+
12
−
4
View file @
56d23925
...
...
@@ -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.2
0
INITIALIZER FOR DOCKER APP v1.2
2
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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment