services:
  dashboard-api:
    build: ./api
    ports:
      - "8888:8888"
    volumes:
      - ../scripts:/app/scripts:ro
      - ../data:/app/data:ro
      - /tmp:/app/logs:ro
      - ~/.ssh:/root/.ssh:ro
    network_mode: host
    restart: unless-stopped

  dashboard-ui:
    build: ./ui
    ports:
      - "3000:3000"
    environment:
      - NEXT_PUBLIC_API_URL=http://localhost:8888
    network_mode: host
    depends_on:
      - dashboard-api
    restart: unless-stopped
