PHPackages                             apphp/laravel-docker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. apphp/laravel-docker

ActiveProject[DevOps &amp; Deployment](/categories/devops)

apphp/laravel-docker
====================

Docker Compose workflow that sets up your own network of containers for local Laravel development

0.6.0(5mo ago)08MITMakefilePHP &gt;=7.4 || ^8

Since Dec 28Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/apphp/laravel-docker)[ Packagist](https://packagist.org/packages/apphp/laravel-docker)[ Docs](https://apphp.com)[ RSS](/packages/apphp-laravel-docker/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Laravel Docker
==============

[](#laravel-docker)

A pretty simple Docker Compose workflow that sets up your own network of containers for local Laravel development.

Usage
-----

[](#usage)

To get started, make sure you have Docker installed on your system, and then clone this repository:

- [Docker for Windows](https://docs.docker.com/desktop/windows/install/)
- [Docker for Mac](https://docs.docker.com/desktop/mac/install/)
- [Docker for Other](https://docs.docker.com/compose/install/)

To start working with docker do following

1. Open a terminal and navigate to the directory you cloned this or copy `docker/` directory and `docker-composer.yml` to your current project and navigate to there.
2. Rename everywhere in files `myapp` name with the name you prefer for your application.
3. Run following command to spin up the containers for the web server:

```
docker-compose up --build -d
```

After building containers you may up them by following command:

```
docker-compose up -d
```

or down with

```
docker-compose down
```

After successful building your website will be accessible via:

```
http://localhost:8081

```

Schema
------

[](#schema)

```
   ___________     ___________     ___________     ___________
   |         |     |         |     |         |     |         |
   |  NGINX  | --→ | PHP-FPM |     | PHP-CLI |     |  REDIS  |
   |         |	   |         |     |         |     |         |
   -----------	   -----------     -----------     -----------
        |               |               |
        ↓               ↓               ↓
   ____________   ______________________________   ______________
   |  Static  |   |                            |   |            |
   | Content  |   |           CODE             |
