2021-05-26 03:07:04 +08:00
|
|
|
#
|
|
|
|
# Run with either `make docker-test` or the following Docker command:
|
|
|
|
# docker-compose -f docker-compose.yml -f docker-compose.local.yml up
|
|
|
|
#
|
2021-05-26 01:37:53 +08:00
|
|
|
---
|
|
|
|
version: '3'
|
|
|
|
services:
|
2021-05-26 03:07:04 +08:00
|
|
|
# This is overriding the docker-compose.yaml file to have a localized version
|
|
|
|
# of the contianer that you can use for building/testing
|
2021-05-26 01:37:53 +08:00
|
|
|
app:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
environment:
|
|
|
|
DB_HOST: mysql
|
|
|
|
REDIS_HOST: redis
|
|
|
|
volumes:
|
2021-05-26 03:07:04 +08:00
|
|
|
- ./app:/var/www/app
|
|
|
|
- ./bootstrap:/var/www/bootstrap
|
|
|
|
- ./config:/var/www/config
|
|
|
|
- ./modules:/var/www/modules
|
|
|
|
- ./public:/var/www/public
|
|
|
|
- ./resources:/var/www/resources
|
|
|
|
- ./storage:/var/www/storage
|
|
|
|
- ./tests:/var/www/tests
|
|
|
|
- ./composer.json:/var/www/composer.json
|
|
|
|
- ./composer-lock.json:/var/www/composer-lock.json
|
|
|
|
- ./env.php:/var/www/env.php
|
2021-05-26 01:37:53 +08:00
|
|
|
- ./resources/docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
|
2021-06-04 22:51:59 +08:00
|
|
|
- ./vendor/var/www/vendor
|
2021-05-26 01:37:53 +08:00
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
- redis
|