Skip to content

WEB development environment based on PHP-FPM, Nginx and MariaDB

Notifications You must be signed in to change notification settings

Creased/docker-webdev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development environment based on PHP-FPM, Nginx and MariaDB

Informations

File Structure

data        # Directory linked to VirtualBox API
├─── build  # Data used to build containers (i.e., DockerFile)
├─── conf   # Configuration data used by services
├─── data   # Raw data used by services
└─── log    # Logs issued by services

Setup

Requirements

Download

git clone https://gitlab.com/Creased/docker-webdev-env webdev-env
pushd webdev-env/

Build

Build of containers based on docker-compose.yml:

docker-compose pull
docker-compose build

Start

To get it up, please consider using:

docker-compose create
docker-compose start
docker-compose up

Fix host file

To get this setup ready, please make sure to fill-in your host file to catch these domains (see howtogeek):

  • app.dev: Production web project;
  • gitlab.dev: Git repositories;
  • stackedit.dev: StackEdit WEB app;
  • {lab.dev, local.dev}: Web projects laboratory.

Your host file should look like (depending to your system):

127.0.0.1 localhost local.dev gitlab.dev stackedit.dev lab.dev app.dev

Browse your applications

When done, turn on your web browser and crawl:

Live display of logs

docker-compose logs --follow

Run bash on container

Template:

docker-compose exec SERVICE COMMAND

Example:

docker-compose exec db bash

Then you will be able to manage your configuration files, debug daemons and much more...