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
3+ {
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+ " ../LNX-docker-compose.yml" ,
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+ // Uncomment the next line if you want start specific services in your Docker Compose config.
28+ // "runServices": [],
29+ // Uncomment the next line if you want to keep your containers running after VS Code shuts down.
30+ "shutdownAction" : " stopCompose" ,
31+ "onCreateCommand" : " python3 -m pip install -e ." ,
32+ "features" : {
33+ "ghcr.io/devcontainers/features/git:1" : {},
34+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
35+ },
36+ // Configure tool-specific properties.
37+ "customizations" : {
38+ "vscode" : {
39+ "extensions" : [
40+ " ms-python.python"
41+ ]
42+ }
43+ },
44+ "remoteEnv" : {
45+ "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
46+ }
47+ // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
48+ // "remoteUser": "devcontainer"
49+ }
0 commit comments