Skip to content

A docker-compose with LEMP images. NGINX / APACHE / MySQL 5.7 / PHP 7.4 (FPM) / PHPMYADMIN

License

Notifications You must be signed in to change notification settings

drvy/docker-leamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose LEMP / LAMP stack

Simple compose .yml files that build a LEMP or a LAMP stack. Intended for development purposes only. I also have a Vagrant Box for development purposes, check it out here.

Services

Services depend on the compose file chosen. In all cases, PHPMyAdmin and MySQL will be available.

  • PHPMyAdmin (phpmyadmin/phpmyadmin)

  • MySQL 5.7 (mysql:5.7)

  • LEMP74

    • NGINX (nginx:latest)
    • PHP 7.4-fpm (php:7.4-fpm)
    • PHP Extensions: xdebug, zip, gd, mysqli, curl, mysql_pdo
  • LAMP74

    • APACHE & PHP (php-7.4-apache)
    • PHP Extensions: xdebug, zip, gd, mysqli, curl, mysql_pdo

Install

You must indicate to docker-compose the compose file you want to manage at all times. For example, to build and run a LEMP 7.4 Stack:

  1. Clone ( git clone https://github.com/drvy/docker-leamp )
  2. Build ( docker-compose -f lemp74.yml build --no-cache )
  3. Run ( docker-compose -f lemp74.yml up -d )
  4. Use ( http://localhost )

Use the ./src folder for project files. MySQL is stored in ./docker/db so it can be persistent. Both ./src and ./docker/db are shared between stacks.

Ports

  • NGINX and APACHE are exposed to 80 (80 in their container).
  • PHPMyAdmin is exposed to 9192 (80 in it's container).
  • MySQL is exposed to 9193 (3306 in it's container).
  • PHPFPM is exposed to 9194 (9000 in it's container).

About

A docker-compose with LEMP images. NGINX / APACHE / MySQL 5.7 / PHP 7.4 (FPM) / PHPMYADMIN

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published