Files
lunchtime-web/.devcontainer/devcontainer.json
T
2026-10-17 21:33:08 +02:00

57 lines
1.3 KiB
JSON

{
"name": "Lunchtime Web",
"dockerComposeFile": [
"../src/compose.yml",
"docker-compose.devcontainer.yml"
],
"service": "devcontainer",
"workspaceFolder": "/workspaces/lunchtime-web",
"runServices": [
"backend",
"frontend",
"mailpit",
"nginx"
],
"shutdownAction": "stopCompose",
"overrideCommand": false,
"forwardPorts": [
8020,
8025
],
"portsAttributes": {
"8020": {
"label": "Lunchtime",
"onAutoForward": "openBrowser"
},
"8025": {
"label": "Mailpit",
"onAutoForward": "notify"
}
},
"features": {
"ghcr.io/devcontainers/features/python:1": {
"version": "3.12"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "20"
}
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"dbaeumer.vscode-eslint"
],
"settings": {
"python.analysis.extraPaths": [
"${workspaceFolder}/src/backend"
],
"python.testing.pytestEnabled": false,
"typescript.tsdk": "${workspaceFolder}/src/frontend/node_modules/typescript/lib"
}
}
},
"postCreateCommand": "python -m pip install --user -r src/backend/requirements.txt && npm --prefix src/frontend ci"
}