Skip to content

Latest commit

 

History

History
85 lines (66 loc) · 1.3 KB

README.md

File metadata and controls

85 lines (66 loc) · 1.3 KB

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