generated from Crell/php-project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
21 lines (20 loc) · 1.27 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# To use:
# Run "docker-compose build" to rebuild the app container.
# Run "docker-compose run -u $(id -u ${USER}):$(id -g ${USER}) --rm php81 composer install" to install dependencies.
# Run "docker-compose run -u $(id -u ${USER}):$(id -g ${USER})--rm php81 vendor/bin/phpunit" to run the test script on 8.1.
# Run "docker-compose down -v" to fully wipe everything and start over.
# Run "docker-compose run -u $(id -u ${USER}):$(id -g ${USER}) --rm php80 bash" to log into the container to run tests selectively.
version: "3"
services:
php81:
build: ./docker/php/81
volumes:
- ~/.composer:/.composer #uncomment this line to allow usage of local composer cache
- .:/usr/src/myapp
- ./docker/php/81/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
- ./docker/php/conf.d/pcov.ini:/usr/local/etc/php/conf.d/pcov.ini
environment:
# This should be using pcov, but I'm having trouble getting that to enable.
XDEBUG_MODE: "develop,debug,coverage"
XDEBUG_CONFIG: "client_host=${HOST_IP} idekey=${IDE_KEY} client_port=${XDEBUG_PORT} discover_client_host=1 start_with_request=1"