grocy/.devcontainer/devcontainer.json
Michael Gasparelli ec81176515 Set up devcontainer for local dev
Add a complete devcontainer setup to enable one-click development
environment setup in VS Code with all dependencies and services
pre-configured.
2025-11-30 12:24:06 -05:00

21 lines
478 B
JSON

{
"name": "Grocy Development",
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"forwardPorts": [
80
],
"postCreateCommand": "bash -c 'composer install && yarn install && if [ ! -f data/config.php ]; then cp config-dist.php data/config.php; fi && chmod -R 777 data'",
"postStartCommand": "apache2-foreground &",
"customizations": {
"vscode": {
"settings": {
"php.validate.executablePath": "/usr/local/bin/php"
}
}
},
"remoteUser": "root"
}