Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rufhausen authored Nov 10, 2021
1 parent 17d7e38 commit 1b62fdf
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,19 @@ Designed to be a starting point for multiple Docker environments on local machin

Each project will utilize the same Nginx proxy instance.


### Included Services
- PHP 7.4
- MySQL 8.0
- MariaDB 10.4
- Nginx
- Redis
- Nginx Proxy


## Installation
Place the files in the root of your Laravel app. Run the following command from the application root in a terminal window: `chmod +x ./docker/create-network.sh && chmod +x docker-reboot`

Copy the environment variables in .env.example into your .env file. Customize as needed noting that all values defined need to be unique for each project.

From a terminal window, run `./docker-reboot`. This will start the Nginx proxy if it is not already running and spin up the Docker environment. This should be the preferred method for starting and restarting your Docker environment across all projects.

## Notes
- MySQL data files are stored on the local file system, not in Docker shared data under docker/mysql/data. Doing so *might* make it faster on MacOS and allows you to reset Docker shared data without losing your database data.
- The `./docker-reboot` script includes `--scale blackfire=0`. There is no Blackfire container included, but if there were, this would prevent blackfire from spinning up by default. Might be useful for a container you want to add, but not run automatically.
- If you use VS Code, you can use the following to configure Xdebug:
[tasks.json](https://gist.github.com/rufhausen/3a7f3167f0041e11a4887176c8a450b9)
[launch.json](https://gist.github.com/rufhausen/f3461d23e3573fdc896e8e316c78aaca)
- If you want to run PHPUnit tests with xDebug, and you have some time to kill (it's faster with a local version of PHP), you can run: `docker-compose exec php php -d memory_limit=-1 -c ./docker/php/xdebug.ini vendor/bin/phpunit`
- If you want to run PHPUnit tests with xDebug, and you have some time to kill (it's faster with a local version of PHP), you can run: `docker-compose exec php php -d memory_limit=-1 -c ./docker/php/xdebug.ini vendor/bin/phpunit`

0 comments on commit 1b62fdf

Please sign in to comment.