Files
siren/service/Makefile
2024-03-03 16:17:56 -05:00

33 lines
726 B
Makefile

#!make
SHELL := /bin/bash
include .env
.PHONY: help build test up down exec clean
help: ## Help command
@echo
@cat Makefile | grep -E '^[a-zA-Z\/_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo
build: ## Build the docker image
docker compose build
backend-up: ## Start the backend containers
docker compose --profile backend up -d
backend-down: ## Stop the backend containers
docker compose --profile backend down
up: ## Start the app
docker compose up -d
down: ## Stop the app
docker compose down
clean: ## Clean the app
docker compose down && \
docker image rm siren-service || \
docker network rm siren_frontend || \
docker network rm siren-backend