- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
Docker setup for Lumen with Nginx and PHP 8.2
License
TOA-Anakin/lumen-docker-dev
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Docker setup for Lumen with Nginx and PHP 8.2
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published