-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (34 loc) · 845 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
37
DOCKER_COMPOSE=docker-compose
PHP_SERVICE=php
NGINX_SERVICE=nginx
KIBANA_SERVICE=kibana
ELASTICSEARCH_SERVICE=elasticsearch
LOGSTASH_SERVICE=logstash
DB_SERVICE=db
DOCKER_EXEC=$(DOCKER_COMPOSE) exec
ZSHELL=zsh
SHELL=sh
.PHONY: install build start start-detached stop stop-delete run-php run-nginx run-db run-elk
install: build start-detached
build:
$(DOCKER_COMPOSE) build
start:
$(DOCKER_COMPOSE) up
startd:
$(DOCKER_COMPOSE) up -d
stop:
$(DOCKER_COMPOSE) stop
remove:
$(DOCKER_COMPOSE) down
run-php:
$(DOCKER_EXEC) $(PHP_SERVICE) $(ZSHELL)
run-nginx:
$(DOCKER_EXEC) $(NGINX_SERVICE) $(SHELL)
run-db:
$(DOCKER_EXEC) $(DB_SERVICE) $(SHELL)
run-kibana:
$(DOCKER_EXEC) $(KIBANA_SERVICE) $(SHELL)
run-logstash:
$(DOCKER_EXEC) $(LOGSTASH_SERVICE) $(SHELL)
run-elasticsearch:
$(DOCKER_EXEC) $(ELASTICSEARCH_SERVICE) $(SHELL)