CI_COMPOSE=FIXUID=$(shell id -u) FIXGID=$(shell id -g) docker-compose -f docker-compose.yml
loginappsql_SHELL_USER ?= www-data:

up:
	FIXUID=$(shell id -u) FIXGID=$(shell id -g) docker-compose up --build

down:
	docker-compose down -v

purge:
	docker-compose down -v --remove-orphans --rmi local

loginappsql-shell:
	$(CI_COMPOSE) exec \
		-u "$(loginappsql_SHELL_USER)" \
		loginappsql \
		/bin/bash