Skip to content

Instantly share code, notes, and snippets.

@LucianoCharlesdeSouza
Created August 31, 2021 15:56
Show Gist options
  • Save LucianoCharlesdeSouza/414f7f09a32391a72bf6f2ab632c5315 to your computer and use it in GitHub Desktop.
Save LucianoCharlesdeSouza/414f7f09a32391a72bf6f2ab632c5315 to your computer and use it in GitHub Desktop.
docker-compose usado no video sobre xdebug3 com vscode
version: "3.7"
# Networks
networks:
# Internal network
internal:
driver: bridge
services:
# api
api_php_sandbox:
image: webdevops/php-apache-dev:7.4
restart: always
container_name: api_php_sandbox
networks:
- internal
working_dir: /var/www/app
volumes:
- .:/var/www/app
environment:
- WEB_DOCUMENT_ROOT=/var/www/app
- XDEBUG_MODE=debug
- XDEBUG_IDE_KEY=VSCODE
- XDEBUG_CLIENT_HOST=host.docker.internal
- XDEBUG_REMOTE_CONNECT_BACK=1
- PHP_DATE_TIMEZONE=UTC
- PHP_DISPLAY_ERRORS=1
- WEB_DOCUMENT_INDEX=index.php
- PHP_MEMORY_LIMIT=2048M
- PHP_MAX_EXECUTION_TIME=86400
- PHP_POST_MAX_SIZE=500M
- PHP_UPLOAD_MAX_FILESIZE=500M
expose:
- 9003
ports:
- 8080:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment