- Clone the repo:
git clone https://github.com/TOA-Anakin/lumen-docker-dev.git
- Rename the cloned repo as desired:
mv lumen-docker-dev your_project_name
- Check your user ID using the
id -u
command and update the.docker/.env
file accordingly. cd
into the.docker
directory and build the Docker containers:Before the end of the process you should see a list of newly created (now running) containers:cd your_project_name/.docker docker compose up -d --build
[+] Running 2/2 ✔ Network lumen_docker_app Created 0.1s ✔ Container lumen_docker-api-1 Started 0.1s
- Open the terminal of the PHP container (mine is named
lumen_docker-php-1
) and create a Lumen project usingcomposer
:Move the contents ofdocker exec -it lumen_docker-php-1 bash composer create-project --prefer-dist laravel/lumen tmpdir
temp_dir
into the project root:mv tmpdir/* . && mv tmpdir/.[!.]* . && rmdir tmpdir
- Access your Lumen web app at http://localhost