You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker-compose
|
|
{
|
|
"name": "Docker from Docker Compose",
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
|
|
|
// Use this environment variable if you need to bind mount your local source code into a new container.
|
|
"remoteEnv": {
|
|
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
|
|
},
|
|
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
|
"version": "20.10",
|
|
"enableNonRootDocker": "true",
|
|
"moby": "true"
|
|
}
|
|
}
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
// "postCreateCommand": "docker --version",
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|