add docker config

This commit is contained in:
2026-03-26 12:17:38 +01:00
parent 1f20359fa3
commit 799b012ceb
3 changed files with 44 additions and 2 deletions

28
docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
services:
backend:
image: node:20-alpine
working_dir: /app
command: sh -c "npm ci && npm run dev:backend"
ports:
- "8787:8787"
volumes:
- ./:/app
- backend_node_modules:/app/node_modules
frontend:
image: node:20-alpine
working_dir: /app
command: sh -c "npm ci && npm run dev:frontend -- --host 0.0.0.0 --port 5173"
ports:
- "5173:5173"
environment:
- VITE_PROXY_TARGET=http://backend:8787
depends_on:
- backend
volumes:
- ./:/app
- frontend_node_modules:/app/node_modules
volumes:
backend_node_modules:
frontend_node_modules: