// For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/php-mariadb { "name": "${localWorkspaceFolderBasename}", "dockerComposeFile": "./docker-compose.yml", "service": "web", "workspaceFolder": "/var/www/html", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, // For use with PHP or Apache (e.g.php -S localhost:8080 or apache2ctl start) "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. "postStartCommand": "git config --global --add safe.directory /var/www/html && npm install && composer install && apachectl start", // Configure tool-specific properties. "customizations" : { "jetbrains" : { "backend" : "PhpStorm" } }, // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. "remoteUser": "root" }