-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
36 lines (27 loc) · 812 Bytes
/
Makefile
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
COMPOSE_FILE=docker-compose.yaml
all:build up
# Build the Docker images
build:
docker-compose -f $(COMPOSE_FILE) build
# Start the services
up:
docker-compose -f $(COMPOSE_FILE) up -d
# Stop the services
down:
docker-compose -f $(COMPOSE_FILE) down
# View logs for the services
logs:
docker-compose -f $(COMPOSE_FILE) logs
# Rebuild and restart the services
rebuild:
docker-compose -f $(COMPOSE_FILE) down
docker-compose -f $(COMPOSE_FILE) build
docker-compose -f $(COMPOSE_FILE) up -d
# Help command to display available commands
help:
@echo "Available commands:"
@echo " build - Build the Docker images"
@echo " up - Start the services"
@echo " down - Stop the services"
@echo " logs - View logs for the services"
@echo " rebuild - Rebuild and restart the services"