-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 750 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Services are [dolar_api, waifuland_fe_app, waifuland_be_app]
## Usage: make run_service service_type=hub service=dolar_api
COMPOSE_FILE_HUB := docker/hub.docker-compose.yml
COMPOSE_FILE_APPS := docker/apps.docker-compose.yml
env:
cp ./docker/.env.example ./docker/.env
compose_up_hub:
cd docker && docker compose -f hub.docker-compose.yml up -d
compose_up_apps:
cd docker && docker compose -f apps.docker-compose.yml up -d
run_service:
ifeq ($(service_type), hub)
cd docker && docker-compose -f $(COMPOSE_FILE_HUB) run $(service)
else ifeq ($(service_type), apps)
cd docker && docker-compose -f $(COMPOSE_FILE_APPS) run $(service)
else
@echo "Invalid service_type. Use 'service_type=hub' or 'service_type=apps'."
@exit 1
endif