forked from RomainDreidemy/MT5-EasyDocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (29 loc) · 755 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
38
39
40
41
42
43
DOCKER_COMPOSE=docker compose
up:
$(DOCKER_COMPOSE) up --build --detach
down:
$(DOCKER_COMPOSE) down --remove-orphans
install:
$(DOCKER_COMPOSE) exec -it front yarn install --ignore-engines
build:
$(DOCKER_COMPOSE) exec -it front yarn run build
watch:
$(DOCKER_COMPOSE) exec -it front yarn run watch-build
logs:
$(DOCKER_COMPOSE) logs -f
api-logs:
$(DOCKER_COMPOSE) logs -f api
front-logs:
$(DOCKER_COMPOSE) logs -f front
front-linter:
$(DOCKER_COMPOSE) exec -it front yarn lint
database-logs:
$(DOCKER_COMPOSE) logs -f database
api-sh:
$(DOCKER_COMPOSE) exec -it api sh
front-sh:
$(DOCKER_COMPOSE) exec -it front sh
database-sh:
$(DOCKER_COMPOSE) exec -it database sh
api-test:
$(DOCKER_COMPOSE) exec -it api go test -v ./...