Updated docker commands and makefiles

This commit is contained in:
Benjamin Sherriff
2024-05-04 13:38:39 -04:00
parent 39d9850c41
commit e497ce243e
4 changed files with 29 additions and 28 deletions

View File

@@ -10,23 +10,26 @@ help: ## Help command
@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
up: ## Start the backend containers
@docker compose --profile backend up -d
backend-up: ## Start the backend containers
docker compose --profile backend up -d
down: ## Stop the backend containers
@docker compose --profile backend down
backend-down: ## Stop the backend containers
docker compose --profile backend down
run: ## Run the app
@cargo run
up: ## Start the app
docker compose up -d
docker-up: ## Start the app
@docker compose --profile backend --profile siren up -d
down: ## Stop the app
docker compose down
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 compose down && \
docker image rm siren-service || \
docker network rm siren_frontend || \
docker network rm siren-backend