Skip to content

All the "core" processes (e.g. Nginx, PHP7-FPM, MariaDB etc.) and "development" processes (e.g. composer, artisan etc.) each had their own container.

Notifications You must be signed in to change notification settings

dunghv/docker-lemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-LEMP

All the "core" processes (e.g. nginx, php-fpm, etc.) and "development" processes (e.g. composer, artisan etc.) each had their own container.

What are included?

  • php5 (cli & fpm)
  • php7 (cli & fpm)
  • nginx
  • mariadb
  • redis
  • mongodb

Setup

  1. Install docker

  2. Choose your php version in docker-compose.yml

    context: docker/php7

  3. Put your project php code in root folder.

    The document root path is pointed to /public by default (as some php frameworks like Laravel, Symphony, Yii...).

    You can change it in docker/nginx/app.conf

Usage

  • Start server

    docker-compose up

  • Stop server

    docker-compose down

  • Some useful command

    bin/run --help

About

All the "core" processes (e.g. Nginx, PHP7-FPM, MariaDB etc.) and "development" processes (e.g. composer, artisan etc.) each had their own container.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published