Skip to content

A simple docker webserver with nginx, php-fpm (+xdebug) and mariadb.

Notifications You must be signed in to change notification settings

awsmug/simple-docker-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docker Webserver (Nginx, PHP, MariaDB, Xdebug)

This webserver contains a basic configuration with

  • nginx (latest)
  • php (7-fpm) - configured with xdebug
  • mariadb (latest)

Configure your environment

PHP Settings

The default xdebug port is set to 9001. Make sure that you change the IP address to your local IP address you will get with the ifconfig command on your console. You have to change it in the file conf/php/php.ini.

xdebug.remote_host={YOUR-IP-ADDRESS}

Also you can setup further xdebug or php settings in the php.ini file.

PhpStorm Settings

Enter the remote host port in PhpStorm > Preferences under the nodes Languages and Frameworks > PHP > Debug in the field XDebug > Debug Port to the port you have entered at your php.ini.

Webserver settings

The nginx host by default is localhost. You can change the host it in the conf/nginx/nginx.conf. But please keep in mind to add the host entry to your local /etc/hosts file with en entry like this:

127.0.0.1 your-host-name

Launching Webserver

Start the webserver with the command docker-compose up and stop it with docker-compose down.

About

A simple docker webserver with nginx, php-fpm (+xdebug) and mariadb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published