-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.dev.yml
39 lines (38 loc) · 1.33 KB
/
docker-compose.dev.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
# Add additional image for development. Has Xdebug and more logging enabled.
# Changes default Config for Ngnix to map based on XDEBUG_SESSION cookie
# See inside ${PWD}/xdebug/jsbookmarks-for-xdebug.txt for javascript that can be used
# as Bookmark elements in your Browser to set/unset the cookie that triggers the
# mapping between esmero-php-debug and esmero-php
# Start these services with: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d
# Stop these services with: docker compose -f docker-compose.yml -f docker-compose.dev.yml down
# (with just "docker-compose down", you will leave an orphan container dangling)
services:
web:
container_name: esmero-web
restart: always
image: "nginx"
depends_on:
- solr
- php
tty: true
ports:
- "8001:80"
networks:
- host-net
- esmero-net
volumes:
- ${PWD}/nginxconfigford8/xdebug.conf:/etc/nginx/conf.d/default.conf:ro
- ${PWD}:/var/www/html:cached
php-debug:
container_name: esmero-php-debug
restart: always
image: esmero/php-8.1-fpm:1.2.0-dev-multiarch
environment:
- XDEBUG_SESSION_START="archipelago"
tty: true
networks:
- host-net
- esmero-net
volumes:
- ${PWD}:/var/www/html:cached
- ${PWD}/xdebug/xdebug.ini:/usr/local/etc/php/conf.d/20-xdebug.ini