File size: 428 Bytes
50ca514
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
version: "3.9"
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "5173:5173" # Map client port
      - "8747:8747" # Map server port
    environment:
      NODE_ENV: development
    volumes:
      - .:/app # Mount the current directory for live changes
      - /app/node_modules # Ensure node_modules stays in the container
    command: npm i && npm run install:all && npm run dev:all