version: '3.8'

services:
  skyview:
    build: .
    ports:
      - "8080:8080"
    environment:
      - DUMP1090_HOST=dump1090
      - DUMP1090_PORT=8080
    depends_on:
      - dump1090
    restart: unless-stopped

  # Example dump1090 service (uncomment and configure as needed)
  # dump1090:
  #   image: mikenye/dump1090-fa
  #   ports:
  #     - "8080:8080"
  #     - "30005:30005"
  #   environment:
  #     - LAT=37.7749
  #     - LONG=-122.4194
  #   devices:
  #     - /dev/bus/usb/001/002:/dev/bus/usb/001/002
  #   restart: unless-stopped