Complete sample configuration for VSCode Remote Development on Containers

This commit is contained in:
Laércio de Sousa 2019-12-06 13:50:32 -03:00
parent bc6ba25790
commit 88d06bb838
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