devcontainer.json 1004 B

12345678910111213141516171819202122232425262728
  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. "postStartCommand": "chmod o+x ./.devcontainer/first-start.sh && ./.devcontainer/first-start.sh && git config --global --add safe.directory /var/www/html && npm install && composer install && npm run build && apachectl start",
  13. // Configure tool-specific properties.
  14. "customizations" : {
  15. "jetbrains" : {
  16. "backend" : "PhpStorm"
  17. }
  18. },
  19. // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
  20. "remoteUser": "root"
  21. }