.PHONY: start stop config upgrade attach-activitypods

# The local pod provider and its infrastructure (fuseki, redis, mailcatcher, arena).
# Festipod's own backend and app run outside Docker: `cd backend && pnpm dev`, `pnpm dev`.
DOCKER_COMPOSE_DEV=docker compose -f docker-compose-dev.yml

start:
	$(DOCKER_COMPOSE_DEV) up -d

stop:
	$(DOCKER_COMPOSE_DEV) kill
	$(DOCKER_COMPOSE_DEV) rm -fv

config:
	$(DOCKER_COMPOSE_DEV) config

upgrade:
	$(DOCKER_COMPOSE_DEV) pull
	$(DOCKER_COMPOSE_DEV) up -d

attach-activitypods:
	$(DOCKER_COMPOSE_DEV) exec activitypods-backend pm2 attach 0
