-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 1.02 KB
/
Makefile
File metadata and controls
44 lines (33 loc) · 1.02 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
.PHONY: up down build logs clean restart restart-backend help
help:
@echo "Available commands:"
@echo " make up - Start all services"
@echo " make down - Stop all services"
@echo " make build - Build all services"
@echo " make logs - Show logs for all services"
@echo " make clean - Remove all containers and volumes"
@echo " make restart - Restart all services"
@echo " make restart-backend - Restart Django backend only"
@echo " make backend - Show backend logs"
@echo " make frontend - Show frontend logs"
@echo " make db - Access PostgreSQL shell"
up:
docker-compose up -d
down:
docker-compose down
build:
docker-compose up -d --build
logs:
docker-compose logs -f
backend:
docker-compose logs -f backend
frontend:
docker-compose logs -f frontend
clean:
docker-compose down -v
restart:
docker-compose restart
restart-backend:
docker-compose restart backend
db:
docker-compose exec db psql -U postgres -d musical