|
| 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/docker-existing-docker-compose |
| 3 | +{ |
| 4 | + "name": "API Platform Devcontainer", |
| 5 | + |
| 6 | + // Update the 'dockerComposeFile' list if you have more compose files or use different names. |
| 7 | + // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. |
| 8 | + "dockerComposeFile": [ |
| 9 | + "../compose.yaml", |
| 10 | + "../compose.override.yaml", |
| 11 | + "compose.devcontainer.yaml" |
| 12 | + ], |
| 13 | + |
| 14 | + // The 'service' property is the name of the service for the container that VS Code should |
| 15 | + // use. Update this value and .devcontainer/docker-compose.yml to the real service name. |
| 16 | + "service": "php", |
| 17 | + |
| 18 | + // The optional 'workspaceFolder' property is the path VS Code should open by default when |
| 19 | + // connected. This is typically a file mount in .devcontainer/docker-compose.yml |
| 20 | + "workspaceFolder": "/srv", |
| 21 | + |
| 22 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 23 | + // "features": {}, |
| 24 | + |
| 25 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 26 | + // "forwardPorts": [], |
| 27 | + |
| 28 | + // Uncomment the next line if you want start specific services in your Docker Compose config. |
| 29 | + // "runServices": [], |
| 30 | + |
| 31 | + // Uncomment the next line if you want to keep your containers running after VS Code shuts down. |
| 32 | + // "shutdownAction": "none", |
| 33 | + |
| 34 | + // Uncomment the next line to run commands after the container is created. |
| 35 | + // "postCreateCommand": ". .devcontainer/install-dev-tools.sh", |
| 36 | + |
| 37 | + // Configure tool-specific properties. |
| 38 | + "customizations": { |
| 39 | + "vscode": { |
| 40 | + "extensions": [ |
| 41 | + "xdebug.php-debug" |
| 42 | + ] |
| 43 | + } |
| 44 | + } |
| 45 | + |
| 46 | + // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. |
| 47 | + // "remoteUser": "devcontainer" |
| 48 | +} |
0 commit comments