-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
61 lines (43 loc) · 1.12 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.DEFAULT_GOAL := help
.PHONY: docker-build docker-up build start log stop restart
DOCKER_COMPOSE=docker-compose -f docker-compose.yml
DOCKER_COMPOSE_PROD=docker-compose -f docker-compose-prod.yml
DOCKER_COMPOSE_DEV=docker-compose -f docker-compose-dev.yml
# Docker
docker-build:
$(DOCKER_COMPOSE) build
docker-build-prod:
$(DOCKER_COMPOSE_PROD) build
docker-up:
$(DOCKER_COMPOSE) up -d --remove-orphans mongo
docker-stop:
$(DOCKER_COMPOSE) down
docker-stop-prod:
$(DOCKER_COMPOSE_PROD) down
docker-stop-dev:
$(DOCKER_COMPOSE_DEV) down
docker-clean:
$(DOCKER_COMPOSE) kill
$(DOCKER_COMPOSE) rm -fv
docker-start:
$(DOCKER_COMPOSE) up -d --force-recreate
docker-start-prod:
$(DOCKER_COMPOSE_PROD) up -d --force-recreate
docker-start-dev:
$(DOCKER_COMPOSE_DEV) up -d --force-recreate
docker-restart:
$(DOCKER_COMPOSE) up -d --force-recreate
log:
$(DOCKER_COMPOSE) logs -f dfc-app
# Start
start:
make docker-start
start-prod: docker-start-prod
start-dev:
make docker-start-dev
stop: docker-stop
stop-prod: docker-stop-prod
stop-dev: docker-stop-dev
restart: docker-restart
build: docker-build
build-prod: docker-build-prod