forked from esmero/archipelago-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
40 lines (39 loc) · 1.35 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
40
# 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)
version: '3.5'
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-7.4-fpm:1.0.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/docker-php-ext-xdebug.ini