-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakeFile
More file actions
35 lines (28 loc) · 993 Bytes
/
Copy pathMakeFile
File metadata and controls
35 lines (28 loc) · 993 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
.PHONY: help docker-up docker-down docker-logs docker-clean docker-restart docker-build
# Default help target
help:
@echo "Available docker commands:"
@echo " make docker-up - Start all containers"
@echo " make docker-down - Stop all containers"
@echo " make docker-logs - View container logs"
@echo " make docker-restart - Restart all containers"
@echo " make docker-clean - Remove all containers and volumes (CAUTION!)"
@echo " make docker-build - Build images without starting"
docker-up:
docker-compose up -d
@echo "✓ All services started"
docker-down:
docker-compose down
@echo "✓ All services stopped"
docker-logs:
docker-compose logs -f
docker-restart:
docker-compose restart
@echo "✓ All services restarted"
docker-clean:
@echo "Warning: This will remove all containers and volumes"
docker-compose down -v
@echo "✓ All containers and volumes removed"
docker-build:
docker-compose build
@echo "✓ Images built successfully"