Slave/scaffold dev docker #1

Merged
nobswebdev merged 9 commits from slave/scaffold-dev-docker into master 2026-09-27 21:43:50 +00:00
2 changed files with 35 additions and 0 deletions
Showing only changes of commit 572844bc73 - Show all commits
+13
View File
@@ -0,0 +1,13 @@
FROM node:20-alpine
WORKDIR /backend
RUN apk add --no-cache curl
COPY package*.json .
RUN npm ci
COPY . .
CMD ["npm", "run", "start:dev"]
+22
View File
@@ -30,6 +30,28 @@ services:
postgres: postgres:
condition: service_healthy condition: service_healthy
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
container_name: ${COMPOSE_PROJECT_NAME}_backend
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
env_file:
- .env.dev
ports:
- '${BACKEND_PORT}:${BACKEND_PORT}'
volumes:
- ./backend/src:/backend/src
healthcheck:
test: ['CMD-SHELL', 'curl -f http://backend:${BACKEND_PORT}/api/health-check/']
interval: 1s
timeout: 30s
retries: 20
start_period: 10s
volumes: volumes:
private_image_postgres_data: private_image_postgres_data:
private_image_pgadmin_data: private_image_pgadmin_data: