- Move in project working directory.
- git clone current repo into
app
directory and create empty directory with namemysql
. - Execute command:
docker run -it -p "2011:80" -p "2012:3306" --name "project" --mount type=bind,source=${PWD}/app,target=/app --mount type=bind,source=${PWD}/mysql,target=/var/lib/mysql mattrayner/lamp:latest
- Create database. Table will be created automatically;
- Save database credentials and add correct data in
config.php
(useconfig.php.example
in directory for this point);