First commit
This commit is contained in:
40
Makefile
Normal file
40
Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
SHELL := /bin/bash
|
||||
.DEFAULT_GOAL := help
|
||||
help:
|
||||
@perl -nle'print $& if m{^[a-zA-Z_.-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
build: ## Build base image
|
||||
docker compose pull
|
||||
docker build -t base-core-app .
|
||||
|
||||
network: ## Create network
|
||||
docker network create -d bridge core_app
|
||||
|
||||
tests: ## Run tests
|
||||
docker compose build test; \
|
||||
docker compose up test
|
||||
|
||||
proxy: ## Run Proxy
|
||||
docker compose stop nginx; \
|
||||
docker compose up nginx --build -d --remove-orphans
|
||||
|
||||
proxy.logs: ## Show Proxy logs
|
||||
docker compose logs -f nginx-proxy
|
||||
|
||||
api.fastapi.run: ## Run API
|
||||
docker compose stop api-fastapi; \
|
||||
docker compose up api-fastapi --build -d
|
||||
|
||||
api.fastapi.logs: ## Show API logs
|
||||
docker compose logs -f api-fastapi
|
||||
|
||||
api.flask.run: ## Run API
|
||||
docker compose stop api-flask; \
|
||||
docker compose up api-flask --build -d
|
||||
|
||||
api.flask.logs: ## Show API logs
|
||||
docker compose logs -f api-flask
|
||||
|
||||
mail: ## Run Mail server (MailHog)
|
||||
docker compose stop mailhog; \
|
||||
docker compose up mailhog --build -d
|
Reference in New Issue
Block a user