Skip to content

nicollaspetrelli/php8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Docker Start

A repository to clone and start your php, laravel or lumem projects in docker! Configured by a docker-compose file with everthing you need to start a PHP 8.1 project!

Containers

  • PHP 8.1.6 FPM
  • MySQL
  • Nginx

Requirements

Only docker and docker-compose installed =)

Getting Starting

  1. Setup docker/database/.env file with yours optional credentials
  2. Run docker-compose up command
  3. Done!

xDebug

VSCode config extension to use remote xDebug

{
    "name": "Listen for XDebug",
    "type": "php",
    "request": "launch",
    "port": 9003,
    "log": true,
    "externalConsole": false,
    "pathMappings": {
        "/var/www" : "${workspaceRoot}",
    },
    "ignore": [
        "**/vendor/**/*.php"
    ]
},

Articles I read to write this repository:

About

Starter docker template php 8

Resources

Stars

Watchers

Forks