-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
77 lines (55 loc) · 2.53 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
REVERSE_PROXY := nginx
BACKEND := node-app
DATABASE := mongo
REDIS := redis
FRONTEND := quasar
SCRAPING := scraping-app
FILTER := filter
TWINT := twint
update-images:
docker pull ghcr.io/me-dev-house/rtma-twint:latest
docker pull ghcr.io/me-dev-house/rtma-node:latest
docker pull ghcr.io/me-dev-house/rtma-filter:latest
docker pull ghcr.io/me-dev-house/rtma-frontend:latest
up-backend:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -V $(REVERSE_PROXY) $(BACKEND) $(DATABASE) $(REDIS)
up-backend-fb:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build --force-recreate -V $(REVERSE_PROXY) $(BACKEND) $(DATABASE) $(REDIS)
up-frontend:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -V $(FRONTEND)
up-frontend-fb:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build --force-recreate -V $(FRONTEND)
up-scraping:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -V $(SCRAPING)
up-scraping-fb:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build --force-recreate -V $(SCRAPING)
up-filter:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -V $(FILTER)
up-filter-fb:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build --force-recreate -V $(FILTER)
up-twint:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -V $(TWINT)
up-twint-fb:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build --force-recreate -V $(TWINT)
up-backend-d:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --force-recreate -V $(REVERSE_PROXY) $(BACKEND) $(DATABASE) $(REDIS)
up-frontend-d:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --force-recreate -V $(FRONTEND)
up-scraping-d:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --force-recreate -V $(SCRAPING)
up-filter-d:
powershell docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build --force-recreate -V $(FILTER)
down:
powershell docker-compose down -v
logs:
powershell docker-compose logs -f
prune:
powershell docker system prune
prune-all:
powershell docker system prune -a
into-node-app:
powershell docker-compose exec -it $(BACKEND) bash
into-mongo:
powershell docker-compose exec -it $(DATABASE) bash
into-vue-app:
powershell docker-compose exec -it $(FRONTEND) bash