Fix devcontainer setup

This commit is contained in:
Mike Conrad
2025-06-20 10:47:20 -04:00
parent 761ea8fef8
commit 1696808c00
10 changed files with 31 additions and 53 deletions

View File

@ -1,22 +1,15 @@
{
"name": "Fullstack DevContainer",
"dockerComposeFile": ["../docker-compose.yml"],
"service": "frontend",
"dockerComposeFile": ["../compose.yml", "../compose.override.yml"],
"service": "backend",
"workspaceFolder": "/app",
"shutdownAction": "stopCompose",
"forwardPorts": [80, 8080],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"mounts": [
"source=frontend_node_modules,target=/app/node_modules,type=volume",
"source=backend_node_modules,target=/backend/node_modules,type=volume",
"source=${localWorkspaceFolder}/backend,target=/backend,type=bind"
],
"postCreateCommand": "npm install && cd /backend && npm install",
"postCreateCommand": "/entrypoint.sh",
"customizations": {
"vscode": {
"extensions": [
"jripouteau.adonis-vscode-extension",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]