-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 2.66 KB
/
Makefile
File metadata and controls
51 lines (42 loc) · 2.66 KB
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
43
44
45
46
47
48
49
50
51
# DataFlow — Docker Commands
# ─────────────────────────────────────────────────────────────────────────────
# Production build (nginx static): make up
# Dev mode (Vite hot-reload): make dev
# Stop everything: make down
# Rebuild images from scratch: make rebuild
# View logs: make logs
# Shell into api container: make shell
.PHONY: up dev down rebuild logs shell
## ── Production ───────────────────────────────────────────────────────────────
up:
docker compose --profile prod up -d --build
@echo ""
@echo " ✅ DataFlow running at http://localhost:3000"
@echo " API: http://localhost:8000"
@echo " Login: admin / admin123"
## ── Development (hot-reload) ─────────────────────────────────────────────────
dev:
docker compose --profile dev up -d --build
@echo ""
@echo " ✅ DataFlow DEV running at http://localhost:3000 (Vite HMR)"
@echo " API: http://localhost:8000"
@echo " Login: admin / admin123"
@echo " Edits to frontend/src/* reload automatically."
## ── Stop all ─────────────────────────────────────────────────────────────────
down:
docker compose --profile prod --profile dev down
## ── Hard rebuild (no cache) ──────────────────────────────────────────────────
rebuild:
docker compose --profile prod build --no-cache
docker compose --profile prod up -d
@echo " ✅ Rebuilt and running at http://localhost:3000"
## ── Logs ─────────────────────────────────────────────────────────────────────
logs:
docker compose logs -f
logs-api:
docker compose logs -f api
logs-frontend:
docker compose --profile prod --profile dev logs -f frontend frontend-dev
## ── Shell ────────────────────────────────────────────────────────────────────
shell:
docker compose exec api bash