Merge pull request #2413 from lbssousa/devcontainer-v2

Complete sample configuration for VSCode Remote Development on Containers
This commit is contained in:
Shao Yu-Lung (Allen) 2019-12-09 18:42:27 +08:00 committed by GitHub
commit fb617deb86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View File

@ -1,7 +1,15 @@
{ {
"name": "Laradock", "name": "Laradock",
"dockerComposeFile": ["../docker-compose.yml"], "dockerComposeFile": [
"runServices": ["nginx", "postgres", "pgadmin"], "../docker-compose.yml",
"docker-compose.extend.yml"
],
"remoteUser": "laradock",
"runServices": [
"nginx",
"postgres",
"pgadmin"
],
"service": "workspace", "service": "workspace",
"workspaceFolder": "/var/www", "workspaceFolder": "/var/www",
"shutdownAction": "stopCompose", "shutdownAction": "stopCompose",

View File

@ -0,0 +1,6 @@
version: '3'
services:
workspace:
volumes:
- ~/.gitconfig:/home/laradock/.gitconfig
- ~/.ssh:/home/laradock/.ssh:ro

1
.gitignore vendored
View File

@ -15,5 +15,6 @@
/.devcontainer/* /.devcontainer/*
!/.devcontainer/devcontainer.example.json !/.devcontainer/devcontainer.example.json
!/.devcontainer/docker-compose.extend-example.yml
.DS_Store .DS_Store