Skip to content

A tool to help Dockerize your PHP, NGINX, MariaDB based application

License

Notifications You must be signed in to change notification settings

maen-bn/elephant-whale

Repository files navigation

elephant-whale

A tool to help your PHP, NGINX, MariaDB based application into Docker

What is provided

  • PHP (7.1 & 5.6)
    • FPM & CLI
  • NGINX
  • MariaDB 10.1 or MySQL 5.7
  • Redis
  • Beanstalkd
  • Composer
  • Node
    • With NPM and Yarn

Requirements

  • Docker
  • Docker Compose

The helper shell scripts require having bash. This is available with most OSs e.g. Linux, macOS, Windows 10 etc. If you're running an older version of Windows, using something like Git Bash can work too.

Setup

First grab and extract the latest release.

The run the setup script and then bring up the containers e.g.

$ ./setup.sh
$ docker-compose up -d

Helper scripts

There are some helper scripts available so you can run the cli of php, composer, and yarn via the containers that are made available e.g.

$ ./php.sh my-script.php
$ ./composer.sh update
$ ./yarn.sh add vue --save

You can also add these scripts contents to your .bashrc file so it can be used globally

About

A tool to help Dockerize your PHP, NGINX, MariaDB based application

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages