Skip to content

Running php-fpm and nginx processes in the same container with Laravel (Docker).

Notifications You must be signed in to change notification settings

atomjoy/docker-laravel-nginx

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