mirror of
https://github.com/NexVeridian/wikidata-to-surrealdb.git
synced 2025-09-02 01:49:13 +00:00
14 lines
463 B
Makefile
14 lines
463 B
Makefile
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
|