Skip to content

Docker container for PHP apps with PHP, Xdebug, Mysql, Nginx and Redis

Notifications You must be signed in to change notification settings

thiagoluna/php-xdebug-mysql-nginx-redis-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Apps Containers


This repo contains a basic docker container for PHP apps.

🚀 Tecnologies

⚙️ Setup & Run

Clone this Repository, enter on its folder and start the containers.

# docker-compose up -d

Access the Frontend in the browser http://localhost:8000
You should see phpinfo page.

💻 For Laravel Apps

1- Just install it on root folder and change line 4 of .docker/nginx/nginx.conf to root /var/www/public;

2- Setup the .env at .docker/app/.env
Use DB envs as example and do the same for other envs you need. These envs should be at docker-compose.yaml and .docker/app/.env

📝 Xdebug in PHPStorm

Click Here to see a tutorial explaining how to setup Xdebug in PHPStorm.

Thiago Luna - Linkedin

About

Docker container for PHP apps with PHP, Xdebug, Mysql, Nginx and Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published