mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
* Updated the base image in `Dockerfile.dev` from `node:18-alpine` to `node:lts-alpine` to use more or less the same as for production docker build (where the client is build lts and server is 18... so yeah not really...) * Removed the `USER node` directive, to prevent permission issues as we hook the whole folder into the container. * Modified the `docker-compose-dev.yml` file to enhance the database healthcheck. The new healthcheck ensures not only postgres is ready but also the database is ready by running a sample query (`SELECT 1`) and adjusts the interval, retries, and start period for better reliability. * Added a `nodemon.json` configuration file to watch only relevant files (node_modules would be ignored but not files like the python venv) and avoid rapid successive restarts with the delay.
15 lines
261 B
JSON
15 lines
261 B
JSON
{
|
|
"watch": [
|
|
"api/**/*.js",
|
|
"config/**/*.js",
|
|
"db/**/*.js",
|
|
"utils/**/*.js",
|
|
"app.js",
|
|
"constants.js"
|
|
],
|
|
"ignore": ["node_modules", ".tmp", ".venv"],
|
|
"ext": "js,json",
|
|
"verbose": true,
|
|
"delay": 1000,
|
|
"legacyWatch": false
|
|
}
|