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 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
- NGINX (
-
LAMP74
- APACHE & PHP (php-7.4-apache)
- PHP Extensions:
xdebug
,zip
,gd
,mysqli
,curl
,mysql_pdo
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:
- Clone (
git clone https://github.com/drvy/docker-leamp
) - Build (
docker-compose -f lemp74.yml build --no-cache
) - Run (
docker-compose -f lemp74.yml up -d
) - 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.
- 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).