services:
  frame-processor:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8080:8080"
    volumes:
      - ./frames.json:/app/frames.json:ro
      - frame-images:/data/images
    depends_on:
      - mosquitto
    networks:
      - frame-net

  mosquitto:
    image: eclipse-mosquitto:2
    ports:
      - "1883:1883"
    volumes:
      - ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
    networks:
      - frame-net

volumes:
  frame-images:

networks:
  frame-net:
