Skip to content

Improvements to the LEMP Stack

While doing some testing for the LEMP stack I've ran in to a few issues / bugs and have some improvements in mind:

  • Need to add restart:always to each of the services in the docker-compose.yml file.
  • The nginx.conf creates a conflict between that file and the default.conf file - set to rename nginx.conf to default.conf
  • Need to give the opportunity to change the host port of the nginx container via .env
  • Add the web folder to the .gitignore exception list.
  • Add extra files in the php container by default.
    • test.php - phpinfo()
    • adminer single page database viewer.
    • index.php - standard hello world
Edited by Conor Ryan