forked from Crell/Serde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (41 loc) · 2.3 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
37
38
39
40
41
42
# 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
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"
# blackfire:
# # Can't use the direct image, because the CLIENT_ID/TOKEN aren't getting
# # passed in properly, so we need to manually login on the shell and set them.
# # If we can fixe that, we can probably go back to using the official container.
## image: blackfire/blackfire:2
# build: ./docker/php/81
# ports: ["8307"]
# environment:
# BLACKFIRE_DISABLE_LEGACY_PORT: 1
# # Exposes BLACKFIRE_* environment variables from the host
# BLACKFIRE_SERVER_ID: ${BLACKFIRE_SERVER_ID}
# BLACKFIRE_SERVER_TOKEN: ${BLACKFIRE_SERVER_TOKEN}
# BLACKFIRE_CLIENT_ID: ${BLACKFIRE_CLIENT_ID}
# BLACKFIRE_CLIENT_TOKEN: ${BLACKFIRE_SERVER_ID}