1
+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2
+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/docker-existing-docker-compose
3
+ // If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
4
+ {
5
+ "name" : " Existing Docker Compose (Extend)" ,
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
+ " ../docker-compose.yml" ,
10
+ " docker-compose.yml"
11
+ ],
12
+ // The 'service' property is the name of the service for the container that VS Code should
13
+ // use. Update this value and .devcontainer/docker-compose.yml to the real service name.
14
+ "service" : " app" ,
15
+ "runServices" : [
16
+ " db" ,
17
+ " app" ,
18
+ ],
19
+ // The optional 'workspaceFolder' property is the path VS Code should open by default when
20
+ // connected. This is typically a file mount in .devcontainer/docker-compose.yml
21
+ "workspaceFolder" : " /workspace" ,
22
+ // Set *default* container specific settings.json values on container create.
23
+ "settings" : {
24
+ "terminal.integrated.defaultProfile.linux" : " bash" ,
25
+ "python.defaultInterpreterPath" : " /usr/bin/python3" ,
26
+ "python.pythonPath" : " /usr/bin/python3" ,
27
+ "files.eol" : " \n " ,
28
+ "editor.formatOnSave" : true ,
29
+ },
30
+ // Add the IDs of extensions you want installed when the container is created.
31
+ "extensions" : [
32
+ " ms-python.python" ,
33
+ " ms-python.vscode-pylance" ,
34
+ " visualstudioexptteam.vscodeintellicode" ,
35
+ " littlefoxteam.vscode-python-test-adapter" ,
36
+ " kevinrose.vsc-python-indent" ,
37
+ " shardulm94.trailing-spaces" ,
38
+ " redhat.vscode-yaml" ,
39
+ " oderwat.indent-rainbow" ,
40
+ " medo64.render-crlf" ,
41
+ " ms-azuretools.vscode-docker" ,
42
+ " ms-vscode-remote.vscode-remote-extensionpack" ,
43
+ ],
44
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
45
+ // "forwardPorts": [],
46
+ // Uncomment the next line if you want start specific services in your Docker Compose config.
47
+ // "runServices": [],
48
+ // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
49
+ // "shutdownAction": "none",
50
+ // Uncomment the next line to run commands after the container is created - for example installing curl.
51
+ // "postCreateCommand": "",
52
+ // Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
53
+ // "remoteUser": "vscode"
54
+ }
0 commit comments