devcontainer.json 983 B

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