forked from reef-defi/reef-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 646 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 646 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
25
VOLUMES = db-data crawler-modules backtracking-modules api-modules frontend-modules
ifeq ($(net), dev)
NODE_CHAIN_CMD=--dev
NODE_CHAIN=
VOLUMES += substrate-data
else
NODE_CHAIN_CMD=--chain
NODE_CHAIN=$(net)
endif
ifeq ($(env), prod)
COMPOSE-MANIFEST=docker-compose-prod.yml
else
COMPOSE-MANIFEST=docker-compose.yml
endif
up:
NODE_CHAIN_CMD=$(NODE_CHAIN_CMD) NODE_CHAIN=$(NODE_CHAIN) docker-compose -p reef-explorer-$(net)-$(env) -f $(COMPOSE-MANIFEST) up -d
down:
docker-compose -p reef-explorer-$(net)-$(env) -f $(COMPOSE-MANIFEST) down
purge:
$(foreach volume,$(VOLUMES),docker volume rm reef-explorer-$(net)-$(env)_$(volume);)