mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Add a complete devcontainer setup to enable one-click development environment setup in VS Code with all dependencies and services pre-configured.
21 lines
478 B
JSON
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"
|
|
}
|