Repository with docker containers to create a lamp stack with different versions of PHP.
Installation for Mac:
- Git clone this repo locally:
git clone https://github.com/rsiota/docker.git .
- Create ~/bin folder:
md ~/bin
- Add
~/bin
to your path:export PATH=$PATH:~/bin
- cd into scripts folder and run the install.sh shell script:
scripts/install.sh
. This file copies the lamp script to~/bin
directory. - The following folder structure is created locally:
./ └── code ├── mysql ├── vhosts └── www └── docker
- There is an example.test folder on
code/www/
and an example.test.conf oncode/vhosts/
- Add
127.0.0.1 example.test.conf
to your/etc/hosts
file. - Start the server with
lamp up
. - You can create your local development environment folders under
www
- To avoid issues with case sensitive table names in MacOS, disable the gRPC Fuse for file sharing on Docker Dashboard>Preferences>General.
Scripts:
Script command | Description |
---|---|
lamp |
This is the base command to start the server. When run with no arguments, it will display some help with the list of all commands. |