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
31{
4- "name" : " Existing Docker Compose (Extend)" ,
5- // Update the 'dockerComposeFile' list if you have more compose files or use different names.
6- // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
7- "dockerComposeFile" : [
8- " ../docker-compose.yaml" ,
9- " docker-compose.yml"
10- ],
11- // The 'service' property is the name of the service for the container that VS Code should
12- // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
13- "service" : " app" ,
14- // The optional 'workspaceFolder' property is the path VS Code should open by default when
15- // connected. This is typically a file mount in .devcontainer/docker-compose.yml
16- "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
17- // Features to add to the dev container. More info: https://containers.dev/features.
18- // "features": {},
19- // Use 'forwardPorts' to make a list of ports inside the container available locally.
20- "forwardPorts" : [
21- 80 ,
22- 443 ,
23- 3306 ,
24- 8080 ,
25- 9000
26- ],
27- "mounts" : [
28- " type=bind,source=${env:SSH_AUTH_SOCK},target=/ssh-agent"
29- ],
30- "containerEnv" : {
31- "SSH_AUTH_SOCK" : " /ssh-agent"
32- },
33- // Uncomment the next line if you want start specific services in your Docker Compose config.
34- // "runServices": [],
35- // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
36- "shutdownAction" : " stopCompose" ,
37- "onCreateCommand" : " python3 -m pip install -q -e .[dev]" ,
38- "features" : {
39- "ghcr.io/devcontainers/features/git:1" : {},
40- "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
41- "ghcr.io/devcontainers/features/github-cli:1" : {},
42- },
43- // Configure tool-specific properties.
44- "customizations" : {
45- "vscode" : {
46- "extensions" : [
47- " ms-python.python"
48- ]
49- }
50- },
51- "remoteEnv" : {
52- "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
53- }
54- // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
55- // "remoteUser": "devcontainer"
56- }
2+ "image" : " mcr.microsoft.com/devcontainers/typescript-node:0-18" ,
3+ "features" : {
4+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {}
5+ },
6+ "postCreateCommand" : " curl -fsSL https://pixi.sh/install.sh | bash && echo 'export PATH=\" $HOME/.pixi/bin:$PATH\" ' >> ~/.bashrc"
7+ }
0 commit comments