|
| 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 |
1 | 3 | { |
2 | | - "name": "Swift", |
3 | | - "image": "swift:6.2.0", |
4 | | - "features": { |
5 | | - "ghcr.io/devcontainers/features/common-utils:2": { |
6 | | - "installZsh": "false", |
7 | | - "username": "vscode", |
8 | | - "upgradePackages": "false" |
9 | | - }, |
10 | | - "ghcr.io/devcontainers/features/git:1": { |
11 | | - "version": "os-provided", |
12 | | - "ppa": "false" |
13 | | - } |
14 | | - }, |
15 | | - "runArgs": [ |
16 | | - "--cap-add=SYS_PTRACE", |
17 | | - "--security-opt", |
18 | | - "seccomp=unconfined" |
19 | | - ], |
20 | | - // Configure tool-specific properties. |
| 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 | + // Configure tool-specific properties. |
21 | 23 | "customizations": { |
22 | 24 | // Configure properties specific to VS Code. |
23 | 25 | "vscode": { |
|
31 | 33 | ] |
32 | 34 | } |
33 | 35 | }, |
34 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
35 | | - // "forwardPorts": [], |
| 36 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 37 | + // "forwardPorts": [], |
| 38 | + |
| 39 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 40 | + // "postCreateCommand": "docker --version", |
36 | 41 |
|
37 | | - // Set `remoteUser` to `root` to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
38 | | - "remoteUser": "vscode" |
| 42 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 43 | + // "remoteUser": "vscode" |
39 | 44 | } |
0 commit comments