version: "3.9"

services:
  backend:
    build:
      context: .
      dockerfile: Dockerfile.backend
    container_name: studia-backend
    expose:
      - "9090"
    environment:
      - PORT=9090
    restart: unless-stopped

  frontend:
    build:
      context: .
      dockerfile: Dockerfile.frontend
    container_name: studia-frontend
    ports:
      - "3000:3000"
    depends_on:
      - backend
    restart: unless-stopped
