Skip to content

This is a boiler plate to start a projet with mysql php nginx

Notifications You must be signed in to change notification settings

scaule/docker-lemp-boilerplate

Repository files navigation

Local installation for development

Prerequisites

Install Docker

Install docker-compose

Mac

Install Docker for Mac : https://store.docker.com/editions/community/docker-ce-desktop-mac

Use command to install docker sync :

./docker.sh install_dockersync

Installation

##On mac install docker-sync :

chmod a+x docker.sh && ./docker.sh install

##Set configuration parameter of your project : Update file env-conf and replace default by your application name and list plugins you want to use like :

APPLICATION_NAME=my_application
PLUGINS=mailcatcher/elk

##Execute init script :

chmod a+x docker.sh && ./docker.sh init

Copy your project in app folder

Check nginx config in docker/app/conf/site-available

Hosts

Add in your hosts file:

127.0.0.1 local.default.fr

Run the docker stack:

./docker.sh start

Connect to container bash

./docker.sh bash

Debug

./docker.sh xdebug enable

Enable xdebug

./docker.sh xdebug enable

Disable xdebug

./docker.sh xdebug enable

About

This is a boiler plate to start a projet with mysql php nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages