Skip to content

Commit

Permalink
fix: Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sumingcheng committed Sep 27, 2024
1 parent f7a06d3 commit cd22dfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile → docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# 通用变量定义
DC = docker-compose -f
DOCKER_DIR = docker

# 定义服务列表
SERVICES = alist apisix api-testing consul deep-lx elasticsearch filebrowser frp \
Expand All @@ -14,12 +13,12 @@ SERVICES = alist apisix api-testing consul deep-lx elasticsearch filebrowser frp

# 启动服务的规则
$(SERVICES):
$(DC) $(DOCKER_DIR)/$@/docker-compose.yaml up -d
$(DC) $*/docker-compose.yaml up -d

# 停止服务的规则
stop:
@read -p "输入要停止的服务名: " SERVICE; \
$(DC) $(DOCKER_DIR)/$$SERVICE/docker-compose.yaml down
$(DC) $$SERVICE/docker-compose.yaml down

# 帮助命令
help:
Expand Down

0 comments on commit cd22dfc

Please sign in to comment.