-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (38 loc) · 927 Bytes
/
Copy pathMakefile
File metadata and controls
52 lines (38 loc) · 927 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
43
44
45
46
47
48
49
50
51
52
.PHONY: dev prod build stop logs clean
# Development
dev:
docker compose up --build
dev-bg:
docker compose up --build -d
# Production (with nginx)
prod:
docker compose -f docker-compose.yml -f docker-compose.prod.yml up --build -d
# Build images only
build:
docker compose build
# Stop all containers
stop:
docker compose down
# View logs
logs:
docker compose logs -f
logs-backend:
docker compose logs -f backend
logs-frontend:
docker compose logs -f frontend
# Clean everything (containers + images + volumes)
clean:
docker compose down --rmi all --volumes --remove-orphans
# Restart a single service
restart-backend:
docker compose restart backend
restart-frontend:
docker compose restart frontend
# Shell into container
shell-backend:
docker compose exec backend sh
shell-frontend:
docker compose exec frontend sh
# Health check
health:
curl -s http://localhost:4000/health | python -m json.tool