5 changed files with 105 additions and 38 deletions
@ -0,0 +1,40 @@
|
||||
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml. |
||||
{ |
||||
"name": "Existing Docker Compose (Extend)", |
||||
|
||||
// Update the 'dockerComposeFile' list if you have more compose files or use different names. |
||||
// The .devcontainer/docker-compose.yml file contains any overrides you need/want to make. |
||||
"dockerComposeFile": [ |
||||
"../../03/docker-compose.yml", |
||||
"docker-compose.yml" |
||||
], |
||||
|
||||
// The 'service' property is the name of the service for the container that VS Code should |
||||
// use. Update this value and .devcontainer/docker-compose.yml to the real service name. |
||||
"service": "react", |
||||
|
||||
// The optional 'workspaceFolder' property is the path VS Code should open by default when |
||||
// connected. This is typically a file mount in .devcontainer/docker-compose.yml |
||||
"workspaceFolder": "/workspace", |
||||
|
||||
// Use 'settings' to set *default* container specific settings.json values on container create. |
||||
// You can edit these settings after create using File > Preferences > Settings > Remote. |
||||
"settings": { |
||||
// This will ignore your local shell user setting for Linux since shells like zsh are typically |
||||
// not in base container images. You can also update this to an specific shell to ensure VS Code |
||||
// uses the right one for terminals and tasks. For example, /bin/bash (or /bin/ash for Alpine). |
||||
"terminal.integrated.shell.linux": null |
||||
}, |
||||
|
||||
// Uncomment the next line if you want start specific services in your Docker Compose config. |
||||
// "runServices": [], |
||||
|
||||
// Uncomment the next line if you want to keep your containers running after VS Code shuts down. |
||||
// "shutdownAction": "none", |
||||
|
||||
// Uncomment the next line to run commands after the container is created - for example installing git. |
||||
// "postCreateCommand": "apt-get update && apt-get install -y git", |
||||
|
||||
// Add the IDs of extensions you want installed when the container is created in the array below. |
||||
"extensions": [] |
||||
} |
||||
@ -0,0 +1,39 @@
|
||||
#------------------------------------------------------------------------------------------------------------- |
||||
# Copyright (c) Microsoft Corporation. All rights reserved. |
||||
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. |
||||
#------------------------------------------------------------------------------------------------------------- |
||||
|
||||
version: '3.7' |
||||
services: |
||||
# Update this to the name of the service you want to work with in your docker-compose.yml file |
||||
react: |
||||
# You may want to add a non-root user to your Dockerfile. On Linux, this will prevent |
||||
# new files getting created as root. See https://aka.ms/vscode-remote/containers/non-root-user |
||||
# for the needed Dockerfile updates and then uncomment the next line. |
||||
# user: vscode |
||||
|
||||
# Uncomment if you want to add a different Dockerfile in the .devcontainer folder |
||||
# build: |
||||
# context: . |
||||
# dockerfile: Dockerfile |
||||
|
||||
# Uncomment if you want to expose any additional ports. The snippet below exposes port 3000. |
||||
# ports: |
||||
# - 3000:3000 |
||||
|
||||
volumes: |
||||
# Update this to wherever you want VS Code to mount the folder of your project |
||||
- .:/workspace |
||||
|
||||
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details. |
||||
# - /var/run/docker.sock:/var/run/docker.sock |
||||
|
||||
# Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. |
||||
# cap_add: |
||||
# - SYS_PTRACE |
||||
# security_opt: |
||||
# - seccomp:unconfined |
||||
|
||||
# Overrides default command so things don't shut down after the process ends. |
||||
command: /bin/sh -c "while sleep 1000; do :; done" |
||||
|
||||
Loading…
Reference in new issue