GithubHelp home page GithubHelp logo

arifulhb / lempdock Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 5.0 10 KB

Docker image for LEMP Stack development. Includes Debian, PHP7.2, Composer, Nginx, MySQL 5.7, Git, Nodejs, Npm

Dockerfile 53.30% PHP 1.59% Shell 45.11%
docker devops lemp php7 php72 php-fpm nginx mysql container

lempdock's Introduction

LEMP Dock

A docker image for LEMP Stack Development

LEMP DockClone Counter

Installation / Usage

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

Usage

  • Build the docker image :
    • Use command lemp/build to build the lempdock image.
  • Run the docker image:
    • Use command lemp/run to run the containers
  • Stop the container:
    • lemp/stop to stop the containers
  • SSH to php-fpm container
    • lemp/ssh and you'll be in /var/www directory of php-fpm container.

Included Softwares:

  1. Debian 9.8 / stretch OS
  2. PHP 7.2
  3. Nginx
  4. MySQL 5.7
  5. Compose 1.8 for PHP Package Management
  6. Nodejs 10.15
  7. NPM 6.4
  8. git 2.11

Documentation

PHP-FPM

Add your source code in www directory and this source code will be available in your php-fpm and nginx containers /var/www diectory.

Nginx

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.

MySQL

Default settings to connect from SequelPro or MySQL Workbench
host: 127.0.0.1
user: root
pass: root
port: 33066
Default settings to connect from PHP App inside php-fpm container
host: mysql
port: 3306
user: root
pass: root

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.