Files
medassist-ng/docker-compose.dev.yml
T
Daniel Volz 30d72f625d chore: unify data folder and update AI instructions (#58)
- Use single ./data folder for both dev and prod (removes ./backend/data)
- Update docker-compose.dev.yml to use ./data:/app/data
- Remove backend/data/ from .gitignore (only data/ needed)
- Add 'NEVER create PRs without permission' rule to copilot-instructions.md
2026-01-20 19:32:35 +01:00

40 lines
1.1 KiB
YAML

services:
backend-dev:
image: node:22-slim
working_dir: /app
command: sh -c "chown -R node:node /app/node_modules /app/data && su node -c 'npm install && npm run dev'"
volumes:
- ./backend:/app
- backend_node_modules:/app/node_modules
- ./data:/app/data
env_file:
- .env
ports:
- "3000:3000"
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://localhost:3000/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))\""]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend-dev:
image: node:22-slim
working_dir: /app
command: sh -c "chown -R node:node /app/node_modules && su node -c 'npm install && npm run dev -- --host --port 5173'"
volumes:
- ./frontend:/app
- frontend_node_modules:/app/node_modules
ports:
- "5173:5173"
security_opt:
- no-new-privileges:true
depends_on:
- backend-dev
volumes:
backend_node_modules:
frontend_node_modules: