Skip to content

Docker's environment development for PHP (Laravel, Wordpress, Magento...)

License

Notifications You must be signed in to change notification settings

focela/flash-development

Repository files navigation

Flash development

Supported PHP Versions PHP Total Downloads Nginx Total Downloads Software License

Docker's environment development for PHP (Laravel, Wordpress, Magento...)

Table of contents

Docker Hub

View Dockerfiles for the latest tags:

Usage

This configuration is intended to be used as a Docker-based development environment for PHP (Laravel, Wordpress, Magento...)

Folders:

  • images: Docker images for nginx and php
  • compose: sample setups with Docker Compose

Prerequisites

This setup assumes you are running Docker on a computer with at least 6GB of RAM allocated to Docker, a dual-core, and an SSD hard drive. Download & Install Docker Desktop.

This configuration has been tested on Mac & Linux. Windows is supported through the use of Docker on WSL.

Custom CLI Commands

  • bin/bash: Drop into the bash prompt of your Docker container. The phpfpm container should be mainly used to access the filesystem within Docker.
  • bin/cli: Run any CLI command without going into the bash prompt. Ex. bin/cli ls
  • bin/docker-compose: Support V1 (docker-compose) and V2 (docker compose) docker compose command, and use custom configuration files, such as compose.yml and compose.dev.yml
  • bin/restart: Stop and then start all containers.
  • bin/setup-ssl: Generate an SSL certificate for one or more domains. Ex. bin/setup-ssl domain.test foo.test
  • bin/setup-ssl-ca: Generate a certificate authority and copy it to the host.
  • bin/start: Start all containers, good practice to use this instead of docker-compose up -d, as it may contain additional helpers.
  • bin/stop: Stop all project containers.

Contributing

We encourage and support an active, healthy community of contributors — including you! Details are in the contribution guide and the code of conduct. The flash-development maintainers keep an eye on issues and pull requests, but you can also report any negative conduct to [email protected]. That email list is a private, safe space; even the flash-development maintainers don't have access, so don't hesitate to hold us to a high standard.


Released under the MIT License.