-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (37 loc) · 880 Bytes
/
Makefile
File metadata and controls
49 lines (37 loc) · 880 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
.PHONY: up down build logs test clean restart status
# Start all services
up:
docker compose up -d
# Stop all services
down:
docker compose down
# Build and start
build:
docker compose up -d --build
# View logs (all services)
logs:
docker compose logs -f
# View backend logs
logs-backend:
docker compose logs -f backend
# Run backend tests
test:
docker compose exec backend python -m pytest tests/ -v
# Health check
health:
@curl -s http://localhost:8000/api/v1/health | python -m json.tool
# Restart backend
restart:
docker compose restart backend worker
# Show container status
status:
docker compose ps
# Clean everything (volumes included)
clean:
docker compose down -v --rmi local
# Run database migrations
migrate:
docker compose exec backend alembic upgrade head
# Production deployment
prod:
docker compose -f docker-compose.prod.yml up -d --build