Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

atomjoy/docker-laravel-nginx

Open more actions menu

Repository files navigation

Nginx and Php-fpm with Laravel on Docker

Running php-fpm and nginx processes in the same container with Laravel (mysql, mariadb, sqlite).

Config Mysql in files

.env
webapp/.env

Build

# Build up
docker compose up --build -d

# Show
docker compose ps

# Interactive container terminal
docker exec -it app_host bash
docker exec -it mysql_host bash

Laravel project directory

# Remove webapp dir and create new Laravel app
composer create-project laravel/laravel webapp

# Or copy your Laravel project files to
webapp
Morty Proxy This is a proxified and sanitized view of the page, visit original site.