Skip to content

Commit eaac035

Browse files
rw4llldvdksn
andauthored
Apply suggestions from code review
Co-authored-by: David Karlsson <[email protected]>
1 parent 97cf0f1 commit eaac035

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

content/guides/frameworks/laravel/development-setup.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ description: Set up a Laravel development environment using Docker Compose.
44
weight: 20
55
---
66

7-
## Development Environment Setup
7+
## Development environment setup
88

99
This guide demonstrates how to set up a development environment for a Laravel application using Docker and Docker Compose. This setup includes essential services like PHP-FPM, Nginx, and a database (using Postgres, with MySQL/MariaDB as alternatives), which enable you to develop in an isolated and consistent environment.
1010

1111
> [!NOTE]
1212
> If you want to quickly test this setup without configuring everything manually, you can download the [Laravel Docker Examples](https://github.com/rw4lll/laravel-docker-examples) repository. It includes pre-configured examples for both development and production environments.
1313
14-
### Project Structure
14+
### Project structure
1515

1616
Start by creating a project structure that includes both the Laravel application and Docker-related files:
1717

@@ -338,5 +338,3 @@ This command will build and start all the required services, including PHP, Ngin
338338
### Summary
339339

340340
By setting up a Docker Compose environment for Laravel development, you ensure that your development setup is consistent and easily reproducible. This makes it easier for you and your team to collaborate on the same project, without worrying about differences in local environments.
341-
342-
<div id="compose-lp-survey-anchor"></div>

content/guides/frameworks/laravel/prerequisites.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ A fundamental understanding of Docker and how containers work will be helpful. I
2828
This guide assumes you have a basic understanding of Laravel and PHP. Familiarity with Laravel’s command-line tools, such as [Artisan](https://laravel.com/docs/11.x/artisan), and its project structure is important for following the instructions.
2929

3030
- Laravel CLI: You should be comfortable using Laravel’s command-line tool (`artisan`).
31-
- Laravel Project Structure: Familiarize yourself with Laravel’s folder structure (`app`, `config`, `routes`, `tests`, etc.).
32-
33-
<div id="compose-lp-survey-anchor"></div>
31+
- Laravel Project Structure: Familiarize yourself with Laravel’s folder structure (`app`, `config`, `routes`, `tests`, etc.).

content/guides/frameworks/laravel/production-setup.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ description: Set up a production-ready environment for Laravel using Docker Comp
44
weight: 30
55
---
66

7-
## Production Environment Setup
7+
## Production environment setup
88

99
This guide demonstrates how to set up a production-ready Laravel environment using Docker and Docker Compose. This configuration is designed for streamlined, scalable, and secure Laravel application deployments.
1010

1111
> [!NOTE]
1212
> If you want to quickly test this setup without configuring everything manually, you can download the [Laravel Docker Examples](https://github.com/rw4lll/laravel-docker-examples) repository. It includes pre-configured examples for both development and production environments.
1313
14-
### Project Structure
14+
### Project structure
1515

1616
The project structure for production closely follows the development setup, with Dockerfiles and configurations tailored specifically for production.
1717

@@ -40,7 +40,7 @@ my-laravel-app/
4040

4141
This structure includes a typical Laravel app, with a `docker` directory for Docker-related files like `php-fpm`, `php-cli` and `nginx` Dockerfiles, as well as `nginx.conf` config file, and the `compose.yaml` file to define the services.
4242

43-
### Create a Dockerfile for PHP-FPM (Production)
43+
### Create a Dockerfile for PHP-FPM (production)
4444

4545
For production, the `php-fpm` Dockerfile creates an optimized image containing only necessary extensions and dependencies.
4646

@@ -164,7 +164,7 @@ CMD ["php-fpm"]
164164

165165
This Dockerfile uses a multi-stage build to separate the build environment from the production environment. The first stage installs the necessary PHP extensions and Composer dependencies, while the second stage sets up the production environment with only the runtime libraries required.
166166

167-
### Create a Dockerfile for PHP-CLI (Production)
167+
### Create a Dockerfile for PHP-CLI (production)
168168

169169
For production we often need a separate container to run Artisan commands, migrations, and other CLI tasks. This container will be very similar to the PHP-FPM container, and can look like this:
170170

@@ -244,7 +244,7 @@ CMD ["bash"]
244244
This Dockerfile is similar to the PHP-FPM Dockerfile, but it uses the `php:8.3-cli` image as the base image and sets up the container for running CLI commands.
245245

246246

247-
### Create a Dockerfile for Nginx (Production)
247+
### Create a Dockerfile for Nginx (production)
248248

249249
Nginx serves as the web server for the Laravel application. We can include static assets directly to the container. Here's an example of possible Dockerfile for Nginx:
250250

0 commit comments

Comments
 (0)