A docker image for LEMP Stack Development
Run following commands to clone the repo, build and run LEMP Dock docker image.
git clone [email protected]:arifulhb/lempdock.git lemptdock
cd lempdock
lemp/build
lemp/run
- Build the docker image :
- Use command
lemp/build
to build the lempdock image.
- Use command
- Run the docker image:
- Use command
lemp/run
to run the containers
- Use command
- Stop the container:
lemp/stop
to stop the containers
- SSH to
php-fpm
containerlemp/ssh
and you'll be in/var/www
directory ofphp-fpm
container.
- Debian
9.8
/ stretch OS - PHP
7.2
- Nginx
- MySQL
5.7
- Compose
1.8
for PHP Package Management - Nodejs
10.15
- NPM
6.4
- git
2.11
Add your source code in www
directory and this source code will be available in your php-fpm
and nginx
containers /var/www
diectory.
To add a new site in your LEMP Dock, you need to add a new nginx config file in images/nginx/sites/
directory.
Create a copy of the images/nginx/sites/default.conf
file and edit server_name
and root
according to your application.
host: 127.0.0.1
user: root
pass: root
port: 33066
host: mysql
port: 3306
user: root
pass: root