Skip to content
Snippets Groups Projects
Commit 2cbf38f1 authored by Axel Hahn's avatar Axel Hahn
Browse files

update docs

parent a9b19ef4
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......@@ -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"
......
## 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`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment