mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 09:59:13 +00:00
Add Makeflie
This commit is contained in:
parent
4d3e2c5b72
commit
afc20907a6
9 changed files with 129 additions and 109 deletions
14
Makefile
Normal file
14
Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
COMPOSE_FILES := surrealdb surrealdb.dev
|
||||
|
||||
.PHONY: $(addprefix up-,$(COMPOSE_FILES)) $(addprefix down-,$(COMPOSE_FILES))
|
||||
|
||||
$(addprefix up-,$(COMPOSE_FILES)):
|
||||
make down-$(subst up-,,$@)
|
||||
docker compose -f docker-compose-$(subst up-,,$@).yml up --build --pull always -d
|
||||
|
||||
$(addprefix down-,$(COMPOSE_FILES)):
|
||||
docker compose -f docker-compose-$(subst down-,,$@).yml down --volumes --remove-orphans
|
||||
docker network prune -f
|
||||
|
||||
view:
|
||||
docker attach wikidata-to-surrealdb
|
Loading…
Add table
Add a link
Reference in a new issue