11// 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
23{
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.
513 "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
616 "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.
2020 "forwardPorts" : [
2121 80 ,
2222 443 ,
2323 3306 ,
2424 8080 ,
2525 9000
2626 ],
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.
2737 "customizations" : {
2838 "vscode" : {
2939 "extensions" : [
3040 " ms-python.python"
3141 ]
3242 }
43+ },
44+ "remoteEnv" : {
45+ "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}"
3346 }
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"
3449}
0 commit comments