1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

build: 🧑‍💻 specify nodemon and remove context from docker dev container build

This commit is contained in:
HannesOberreiter 2025-05-23 09:52:52 +02:00
parent 86cfd155f2
commit 61d48146d3
3 changed files with 24 additions and 6 deletions

View file

@ -1,8 +1,7 @@
FROM node:18-alpine
FROM node:lts-alpine
RUN apk -U upgrade \
&& apk add bash build-base python3 xdg-utils --no-cache \
&& npm install npm --global
USER node
WORKDIR /app

View file

@ -1,7 +1,6 @@
services:
planka-server:
build:
context: .
dockerfile: Dockerfile.dev
image: planka-dev
pull_policy: never
@ -109,10 +108,15 @@ services:
- POSTGRES_DB=planka
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d planka"]
interval: 10s
test:
[
"CMD-SHELL",
"pg_isready -U postgres -d planka && psql -U postgres -d planka -c 'SELECT 1'",
]
interval: 3s
timeout: 5s
retries: 5
retries: 15
start_period: 10s
volumes:
db-data:

15
server/nodemon.json Normal file
View file

@ -0,0 +1,15 @@
{
"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
}