Browse Source

fix-localhost-xdebug

master 0.2.5
fedy95 4 years ago
parent
commit
8538dfee86
  1. 2
      app/config/packages/nelmio_api_doc.yaml
  2. 7
      devops/docker/php/xdebug.ini
  3. 4
      docker-compose.yml

2
app/config/packages/nelmio_api_doc.yaml

@ -4,7 +4,7 @@ nelmio_api_doc:
servers: servers:
- url: https://notification-provider.fedy95.com - url: https://notification-provider.fedy95.com
description: server API over HTTPS description: server API over HTTPS
- url: http://127.0.0.1:8054
- url: http://localhost:8054
description: localhost API over HTTP description: localhost API over HTTP
info: info:
title: notification-provider title: notification-provider

7
devops/docker/php/xdebug.ini

@ -1,8 +1,9 @@
xdebug.client_host=host.docker.internal
zend_extension=xdebug
xdebug.client_host=172.17.0.1
xdebug.remote_autostart=1
xdebug.mode=coverage,debug,profile xdebug.mode=coverage,debug,profile
xdebug.discover_client_host=1
xdebug.start_with_request=yes xdebug.start_with_request=yes
xdebug.client_port=9000
xdebug.client_port=9003
xdebug.extended_info=1 xdebug.extended_info=1
xdebug.idekey="PHPSTORM" xdebug.idekey="PHPSTORM"
xdebug.log_level=0 xdebug.log_level=0

4
docker-compose.yml

@ -11,6 +11,8 @@ services:
context: . context: .
dockerfile: devops/docker/Dockerfile dockerfile: devops/docker/Dockerfile
target: local target: local
container_name: notification-provider_app_1
hostname: notification-provider_app_1
restart: always restart: always
environment: environment:
@ -26,6 +28,8 @@ services:
nginx: nginx:
image: nginx:1.21-alpine image: nginx:1.21-alpine
container_name: notification-provider_nginx_1
hostname: notification-provider_nginx_1
restart: always restart: always
depends_on: depends_on:

Loading…
Cancel
Save