codesshaman / docker_nginx_php82_alpine

Run laravel + php-fpm + nginx inside one docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple PHP configuration with nginx

Php 8.2 with nginx 1.23.3 configuration in alpine 3.17 from docker-compose.

Installation:

git clone https://github.com/codesshaman/docker_nginx_php82_alpine.git

cd docker_nginx_php82_alpine

Build configuration (first launch)

For building configuration change composer commands in makefile and use

make build

In process of building running php-composer container and execute container commands (laravel creation for example).

laravel will be available in the next address:

http://localhost/laravel/public/index.php

If your not use laravel and composer, you can commit lines with this commands.

Stop configuration

make down

Restart

make re

Start

make

Usage:

Copy your php code to "app" folder or use symlink to this folder from your php project.

About

Run laravel + php-fpm + nginx inside one docker container

License:MIT License


Languages

Language:Makefile 99.1%Language:PHP 0.9%