-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 1.08 KB
/
Makefile
File metadata and controls
51 lines (38 loc) · 1.08 KB
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
.PHONY: infra workers infra-w systems system_wg stop down purge all logs status rebuild
# stand up all infrstructure (Rabbitmq and Database)
infra:
docker-compose up db db_idp db_ums db_ads db_sessions rabbitmq redis
# stand up workers
workers:
docker-compose up worker1 worker2 worker3 worker4 worker5 worker6
# stand up infrastructure and workers
infra-w:
docker-compose up db db_ads rabbitmq redis worker1 worker2 worker3 worker4 worker5 worker6
# stand up all APIs
systems:
docker-compose up user ads sessions idp ums yarp-gateway
# stand up system without gateway
system_wg:
docker-compose up db db_ads rabbitmq redis worker1 worker2 worker3 worker4
# stop containers
stop:
docker-compose stop
# clean all volumes
down:
docker-compose down --volumes --rmi all
# purge the build
purge:
docker builder prune -a -f
all: infra workers infra-w systems system_wg
# Get All Servers Logs
logs:
docker-compose logs -f
# get one server logs
logs-%:
docker-compose logs -f $*
# get status docker
status:
docker-compose ps
# stand up all system
rebuild:
docker-compose up --build -d