htstudios / cakephp-docker-compose-box

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CakePHP Docker Compose Box

Requirements

  • Only tested on macOs 10.14+.
  • Only tested for CakePHP 3.x so far.
  • Requires php, composer etc. installed via brew
  • Requires Docker for Mac, Visual Studio Code for Mac

Setup

Warning: Running bin/create again will wipe your project. Use an external git repo to make it save.

  1. Clone Repo
  2. From this repos root run $ bin/create to create the initial cakephp project
  3. Enable .env and app_local.php support in application/http/config/bootstrap.php
  4. Disable debugkit in src/Application.php as it is crashing the docker setup at the moment

Working

  1. From this repos root run $ bin/up to boot the box
  2. From this repos root run $ bin/down to shutdown the box
  3. From this repos root Run $ bin/cli then inside the docker cli $ bin/cake to operate with the cake console inside the docker box
  4. Open https://docker-cake.local:3001 and confirm the https exception for the CakePHP app.
  5. Open http://docker-cake.local:8026 for the Mailhog app.

About


Languages

Language:PHP 44.0%Language:Shell 32.7%Language:Dockerfile 23.3%