-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
36 lines (35 loc) · 1.82 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# To use:
# Run "docker-compose build" to rebuild the app container.
# Run "docker-compose run --rm php80" to run the test script with xdebug.
# Run "docker-compose run --rm php81" to run the test script on 8.1.
# Run "docker-compose down -v" to fully wipe everything and start over.
# Run "docker-compose run --rm php80 bash" to log into the container to run tests selectively.
version: "3"
services:
php81:
build: ./docker/php/81
volumes:
- .:/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
environment:
XDEBUG_MODE: "develop,debug"
XDEBUG_CONFIG: "client_host=${HOST_IP} idekey=${IDE_KEY} client_port=${XDEBUG_PORT} discover_client_host=1 start_with_request=1"
php82:
build: ./docker/php/82
volumes:
- .:/usr/src/myapp
- ./docker/php/82/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
environment:
XDEBUG_MODE: "develop,debug"
XDEBUG_CONFIG: "client_host=${HOST_IP} idekey=${IDE_KEY} client_port=${XDEBUG_PORT} discover_client_host=1 start_with_request=1"
profile:
build: ./docker/php/81
volumes:
- .:/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
environment:
XDEBUG_MODE: "develop,profile"
XDEBUG_CONFIG: "client_host=${HOST_IP} idekey=${IDE_KEY} client_port=${XDEBUG_PORT} discover_client_host=1 start_with_request=1"