SHELL := /bin/bash

COMPOSE = docker compose -f infra/compose/docker-compose.yml
PROFILES = --profile farmos --profile thingsboard --profile nats --profile integration

.PHONY: up down reset logs seed test

up:
	$(COMPOSE) $(PROFILES) up -d --build

down:
	$(COMPOSE) down

reset:
	$(COMPOSE) $(PROFILES) down -v

logs:
	$(COMPOSE) $(PROFILES) logs -f --tail=200

seed:
	python3 scripts/demo_telemetry.py

test:
	python3 -m pytest -q

replay-dlq:
	python3 scripts/replay_dlq.py

up-ui:
	$(COMPOSE) $(PROFILES) --profile farmos_ui up -d --build
