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
2cbf38f1
Commit
2cbf38f1
authored
11 months ago
by
Axel Hahn
Browse files
Options
Downloads
Patches
Plain Diff
update docs
parent
a9b19ef4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/10_🤔_Why.md
+4
-3
4 additions, 3 deletions
docs/10_🤔_Why.md
docs/40_⚙️_Configuration/10_init.sh.cfg.md
+23
-7
23 additions, 7 deletions
docs/40_⚙️_Configuration/10_init.sh.cfg.md
docs/40_⚙️_Configuration/30_Apply_changes.md
+27
-0
27 additions, 0 deletions
docs/40_⚙️_Configuration/30_Apply_changes.md
with
54 additions
and
10 deletions
docs/10_🤔_Why.md
+
4
−
3
View file @
2cbf38f1
...
...
@@ -8,12 +8,13 @@ And to dockerfy exsiting projects quick and dirty. Sure copy & paste works, but
The init script:
*
sets permisssions for container and local user
*
sets
acl
permisssions for container and local user
*
generates needed files for docker from configuration and a set of templates
*
starts/ stops your container
*
handles php projects with or without database container
*
starts/ stops your container(s)
*
opens a console
*
starts php lint
# What problems does it not solve?
It is a script for a dual container and Apache + PHP and (optional) Mariadb only. Nothing else.
It is a script for a dual container and Apache + PHP and (optional) Mariadb only
for a local LAMP dev environment
. Nothing else.
This diff is collapsed.
Click to expand it.
docs/40_⚙️_Configuration/10_init.sh.cfg.md
+
23
−
7
View file @
2cbf38f1
...
...
@@ -5,20 +5,33 @@ Its variables will be used by the templates. You can define your own additional
❗
**It's a MUST to change this file.**
(1)
It is a MUST to change
*
APP_NAME
*
APP_NAME
- the name of your application/ project (lowercase and without spaces)
(2)
You SHOULD change the portmappings in
*
APP_PORT
*
DB_PORT
*
APP_PORT - exposed tcp port for apache httpd
(3)
If you use mariadb then set this value to true:
*
DB_ADD=true
Then the image for myriadb will be enabled in the generated docker compose file.
*
DB_PORT - exposed tcp port for mariadb
(4)
Check needed packages and modules in
*
APP_APT_PACKAGES
*
APP_APACHE_MODULES
*
APP_PHP_MODULES
(5)
You can change versions
*
APP_PHP_VERSION
...
...
@@ -31,7 +44,9 @@ You can change versions
#
# settings for init.sh and base values for replacements in template files
# This script is sourced by init.sh ... this file is bash syntax
#
#
# DOCS: https://os-docs.iml.unibe.ch/docker-php-starterkit/Configuration/init.sh.cfg.html
#
# ----------------------------------------------------------------------
# 2021-12-17 <axel.hahn@iml.unibe.ch>
# ======================================================================
...
...
@@ -43,10 +58,11 @@ APP_PORT=8001
APP_APT_PACKAGES
=
"git unzip zip"
#APP_APACHE_MODULES="rewrite"
APP_APACHE_MODULES
=
""
# headers is needed to set security headers.
# APP_APACHE_MODULES="headers rewrite"
APP_APACHE_MODULES
=
"headers"
APP_PHP_VERSION
=
8.
1
APP_PHP_VERSION
=
8.
3
# APP_PHP_MODULES="curl pdo_mysql mbstring xml zip xdebug"
APP_PHP_MODULES
=
"curl mbstring xml zip xdebug"
...
...
This diff is collapsed.
Click to expand it.
docs/40_⚙️_Configuration/30_Apply_changes.md
0 → 100644
+
27
−
0
View file @
2cbf38f1
## How to apply changes?
After changing a config or a template file below docker/templates/ you need to apply the changes.
### Stop containers
This step is necessary if your continers are currently running only.
Start
`docker/init.sh`
and press
`s`
OR
`docker/init.sh s q`
### Generate new config
Start
`docker/init.sh`
and press
`t`
OR
`docker/init.sh t q`
You see the changes per template and a changed configuration file will be saved.
### Start containers
Start
`docker/init.sh`
and press
`u`
OR
`docker/init.sh u q`
!!! info "INFO"
You can
`docker/init.sh`
and interactively press
`s`
, then
`t`
and finally
`u`
.
Or do it in a single command line with
`docker/init.sh s t u q`
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