Skip to content

Commit 3904088

Browse files
Merge pull request #6 from verbanent/update/docker
Added Docker config for Unit tests
2 parents 8816d08 + ed1f6e4 commit 3904088

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM php:fpm-buster
2+
RUN pecl install xdebug && docker-php-ext-enable xdebug

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: "3.3"
2+
services:
3+
php:
4+
build: .
5+
container_name: php
6+
restart: unless-stopped
7+
volumes:
8+
- .:/var/www/html
9+
- ./docker/xdebug-local.ini:/usr/local/etc/php/conf.d/xdebug-local.ini

docker/xdebug-local.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
xdebug.mode=coverage

0 commit comments

Comments
 (0)