-
-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
34 lines (34 loc) · 839 Bytes
/
docker-compose.yaml
File metadata and controls
34 lines (34 loc) · 839 Bytes
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
version: '3.7'
services:
php-lighttpd:
container_name: xdebug-php
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
XDEBUG_MODE: "${XDEBUG_MODE}"
build:
context: .
dockerfile: Dockerfile
hostname: xdebug-php
init: true
ports:
- "8123:80"
volumes:
- type: "bind"
source: "${PWD}/html"
target: "/var/www/html"
- type: "bind"
source: "${PWD}/vendor"
target: "/var/www/vendor"
- type: "bind"
source: "${PWD}/src"
target: "/var/www/src"
- type: "bind"
source: "${PWD}/views"
target: "/var/www/views"
- type: "bind"
source: "${PWD}/data"
target: "/var/www/data"
- type: "bind"
source: "/tmp/docker-xdebug"
target: "/tmp/docker-xdebug"