I assume you have docker-compose
installed and either docker-engine running locally (Linux) or have docker-machine (installed via docker-toolbox on OSX, Windows)
configured on the computer you use. NOTE: if you use docker-machine (deprecated project so recommend not to) you may need to use the docker-machine IP address instead of localhost
URLs mentioned below
-
Retrieve git project
$ git clone [email protected]:ibrohim238/Foundarium.git
-
Change directory to the
docker-laravel
(cd docker-laravel
) -
Symlink your Laravel/Lumen project into app folder (
ln -s <absolute-path-of-laravel-project> app
) -
Build and start containers in detached mode.
$ docker-compose up -d
-
Prepare Laravel/Lumen app
-
Update app/.env (adapt hosts according to previous results)
# Docker database configuration DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
-
-
Enjoy ๐
-
Docker php container
docker-compose exec app bash