version: '3.9'

services:
    backend:
        build:
            context: ./backend
            dockerfile: Dockerfile
        ports:
            - '3000:3000'
        environment:
            - NODE_ENV=development
    frontend:
        build:
            context: ./frontend
            dockerfile: Dockerfile
        ports:
            - '5173:5173'
        environment:
            - VITE_API_URL=http://backend:3000
        depends_on:
            - backend
