Skip to content

sd-404/dev-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Dev Stack

Dev stack is a PHP dev environment based on Docker.

Requirements

Structure

project
│
└───app
│   │   file
│   │   ...
│   └───subfolder1
│       │   file
│       │   file
│       │   ...
│   
└───utils
    │
    └───docker
        └───nginx
        │   │   file
        │   │   ...
        └───php
        │   │   file
        │   │   ...
        │   docker-compose.yml
        │   Makefile
         

In the app directory lives our application source code.

The utils directory contains all devop tools, such Docker, Ansible, Shell's scripts ...

Docker Services

  • Nginx
  • MySQL 8.0
  • PHP 7.4
  • RabbitMQ
  • PHPMyAdmin
  • MailHog

Installation

After cloning the repository.

cd utils/docker

Build

docker-compose build

You can use the Makefile to build :

make build

Usage

Start

docker-compose up -d

# same thing here you can use the Makefile
make up

Stop

docker-compose down --remove-orphans

# same thing here you can use the Makefile
make down

License

MIT