-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer.extend.yml
More file actions
23 lines (22 loc) · 948 Bytes
/
devcontainer.extend.yml
File metadata and controls
23 lines (22 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3.8'
services:
php-docker-template-php:
# The hostname "host.docker.internal" must be able to resolve to an IP
# address on the host machine.
# This is because the Visual Studio Code debugger will not be able to
# connect to xdebug if xdebug cannot resolve the hostname
# "host.docker.internal" (specified `xdebug.client_host = host.docker.internal`
# in `xdebug.ini`) to the IP address of the host machine.
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
# Update this to wherever you want VS Code to mount the folder of your project
- .:/workspace:cached
# Use `php.ini` for development.
- type: bind
source: ./docker/php/php.ini-development
target: /usr/local/etc/php/conf.d/php.ini
# Override `xdebug` configuration.
- type: bind
source: ./docker/php/xdebug.ini
target: /usr/local/etc/php/conf.d/xdebug.ini