Skip to content

Files

Latest commit

 

History

History
34 lines (24 loc) · 595 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 595 Bytes

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