jketelaar/dockit

Dockit with Docker!

dev-master 2018-09-01 17:04 UTC

This package is auto-updated.

Last update: 2024-03-28 04:10:54 UTC


README

Dockerize it

This is still Work in Progress

What is this for?

This is a command line tool that allows you to create and manage PHP projects.
It allows you to install a local development environment, without being stricted to your local environment.

A real use-case scenario would be a development agency that has multiple websites with different requirements;
Such as project X with PHP 7.0, MySQL and Solr; but also having project Y with PHP 7.1, and ElasticSearch.
Yet you want to work on these projects simultaneously, without having to switch the FPM instance all the time.

ToDo

What's left To Do?

  • Fix MySQL issue where the host of Docker isn't allowed to connect (Host '172.18.0.1' is not allowed to connect to this MySQL server)
  • Add ElasticSearch
  • Add Solr
  • Allow Apache or Nginx
  • Revamp the entire system, as this was based on a PoC, but extending makes it quite hard...

How to install?

1.) First ensure you have the latest php (>= 7.1) installed, preferably the latest stable:

brew install php@7.2

2.) Also ensure you have composer installed:

brew install composer

3.) Now install Dockit globally:

composer global require jketelaar/dockit

dockit config

This creates a configuration setup for your current project, based on the arguments you give in the CLI.
Simply type in dockit config and answer what the CLI requests.

dockit start

Starts the Docker containers for the current project.

dockit stop

Stops the Docker containers for the current project.

dockit restart

Restarts the Docker containers for the current project.

dockit open

Opens the current project in your browser.

dockit haproxy

Opens the HAProxy in your browser.