36 lines
838 B
Makefile
36 lines
838 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
|
|
|
|
up: ## Start the backend containers
|
|
@docker compose --profile backend up -d
|
|
|
|
down: ## Stop the backend containers
|
|
@docker compose --profile backend down
|
|
|
|
run: ## Run the app
|
|
@cargo run
|
|
|
|
docker-up: ## Start the app
|
|
@docker compose --profile backend --profile siren up -d
|
|
|
|
docker-down: ## Stop the app
|
|
@docker compose --profile backend --profile siren down
|
|
|
|
docker-build: ## Build the docker image
|
|
@docker compose build
|
|
|
|
clean: ## Clean the app
|
|
@docker compose down && \
|
|
docker image rm siren-service || \
|
|
docker network rm siren_frontend || \
|
|
docker network rm siren-backend
|