Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Latest commit

 

History

History
32 lines (22 loc) · 938 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 938 Bytes

Docker Project setup

Have your local .env file point to the Docker database host: DB_HOST=db

Make sure you have the following files in your project:

  • docker-compose.yml
  • docker-compose.override.yml (optional)

Speed up Composer install

Composer uses caching to speed up install and update commands, but with Docker the cache stays in the container. The next time you run Composer install the cache will be gone.

By making the cache directory available in all your php containers Composer doesn't have to download the same packages every time.

# docker-compose.override.yml
version: '3.7'
services:
  php:
    volumes:
      - ~/.composer:/root/.composer