-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 706 Bytes
/
Makefile
File metadata and controls
42 lines (31 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.PHONY: up down restart build migrate logs status tf-init tf-plan tf-apply
COMPOSE := docker-compose
## Docker Compose
up:
$(COMPOSE) up -d
down:
$(COMPOSE) down
restart:
$(COMPOSE) down
$(COMPOSE) up -d
build:
$(COMPOSE) build
migrate:
$(COMPOSE) run --rm migrate up
logs:
$(COMPOSE) logs -f --tail=100
status:
$(COMPOSE) ps
@echo ""
@echo "URLs:"
@echo " Dashboard: http://localhost:3001"
@echo " API: http://localhost:8082"
@echo " Grafana: http://localhost:3000"
@echo " Prometheus: http://localhost:9090"
## Terraform
tf-init:
cd infra/terraform && terraform init
tf-plan:
cd infra/terraform && terraform plan
tf-apply:
cd infra/terraform && terraform apply