|
| 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-outside-of-docker-compose |
| 3 | +{ |
| 4 | + "name": "Docker from Docker Compose", |
| 5 | + "dockerComposeFile": "docker-compose.yml", |
| 6 | + "service": "app", |
| 7 | + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", |
| 8 | + |
| 9 | + // Use this environment variable if you need to bind mount your local source code into a new container. |
| 10 | + "remoteEnv": { |
| 11 | + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" |
| 12 | + }, |
| 13 | + |
| 14 | + "features": { |
| 15 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { |
| 16 | + "version": "latest", |
| 17 | + "enableNonRootDocker": "true", |
| 18 | + "moby": "true" |
| 19 | + }, |
| 20 | + "ghcr.io/devcontainers/features/aws-cli:1": {} |
| 21 | + }, |
| 22 | + |
| 23 | + // Configure tool-specific properties. |
| 24 | + "customizations": { |
| 25 | + // Configure properties specific to VS Code. |
| 26 | + "vscode": { |
| 27 | + // Set *default* container specific settings.json values on container create. |
| 28 | + "settings": { |
| 29 | + "lldb.library": "/usr/lib/liblldb.so" |
| 30 | + }, |
| 31 | + // Add the IDs of extensions you want installed when the container is created. |
| 32 | + "extensions": [ |
| 33 | + "swiftlang.swift-vscode" |
| 34 | + ] |
| 35 | + } |
| 36 | + } |
| 37 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 38 | + // "forwardPorts": [], |
| 39 | + |
| 40 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 41 | + // "postCreateCommand": "docker --version", |
| 42 | + |
| 43 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 44 | + // "remoteUser": "root" |
| 45 | +} |
0 commit comments