1
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
2
3
{
3
- "name" : " Development" ,
4
- "dockerComposeFile" : " docker-compose.yaml" ,
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.
5
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
6
16
"workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
7
- // Use this environment variable if you need to bind mount your local source code into a new container.
8
- "remoteEnv" : {
9
- "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
10
- },
11
- // https://containers.dev/features
12
- "features" : {
13
- "ghcr.io/devcontainers/features/docker-in-docker:2" : {},
14
- "ghcr.io/devcontainers/features/git:1" : {},
15
- "ghcr.io/eitsupi/devcontainer-features/jq-likes:1" : {},
16
- "ghcr.io/guiyomh/features/vim:0" : {}
17
- },
18
- "onCreateCommand" : " pip install -e ." ,
19
- "postStartCommand" : " MYSQL_VER=8.0 MINIO_VER=RELEASE.2022-08-11T04-37-28Z docker compose -f local-docker-compose.yml down && docker volume prune -f && MYSQL_VER=8.0 MINIO_VER=RELEASE.2022-08-11T04-37-28Z docker compose -f local-docker-compose.yml up --build --wait" ,
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
20
"forwardPorts" : [
21
21
80 ,
22
22
443 ,
23
23
3306 ,
24
24
8080 ,
25
25
9000
26
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.
27
37
"customizations" : {
28
38
"vscode" : {
29
39
"extensions" : [
30
40
" ms-python.python"
31
41
]
32
42
}
43
+ },
44
+ "remoteEnv" : {
45
+ "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
33
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"
34
49
}
0 commit comments