Created
May 2, 2022 15:25
-
-
Save CViniciusSDias/c785b82e4f724d3737b43dfbe4ff8819 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug.mode=debug | |
xdebug.discover_client_host=0 | |
xdebug.client_host=host.docker.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function exibeMensagem(string $texto): void | |
{ | |
echo $texto; | |
} | |
$texto = 'Olá mundo'; | |
exibeMensagem($texto); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
php: | |
build: | |
context: . | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
ports: | |
- 8123:8123 | |
volumes: | |
- ./:/app | |
working_dir: /app | |
entrypoint: "php -S 0.0.0.0:8123" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.1-cli | |
COPY 90-xdebug.ini "${PHP_INI_DIR}/conf.d" | |
RUN pecl install xdebug | |
RUN docker-php-ext-enable xdebug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment