-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 loc) · 799 Bytes
/
Makefile
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
.PHONY: up
up:
@docker compose up -d --build --force-recreate backend frontend
.PHONY: down
down:
@echo "🧹 Cleaning up development environment..."
@docker compose down
.PHONY: logs
logs:
@echo "📕 Viewing logs..."
@docker compose logs -f
.PHONY: buf
buf:
@docker compose run --rm app "buf lint && buf generate"
.PHONY: shell
shell:
@docker compose run --rm app /bin/bash
.PHONY: db
db:
@docker compose run --rm db /bin/bash
.PHONY: install_frontend
install_frontend:
@docker compose run --workdir /usr/src/app/frontend --rm app "yarn install"
.PHONY: migrate
migrate:
@echo "🔄 Running database migrations..."
@docker compose run --rm flyway migrate
.PHONY: migrate_info
migrate_info:
@echo "Showing database migration history..."
@docker compose run --rm flyway info