makefile and update dependencies
This commit is contained in:
parent
2d2a4a4c07
commit
509508990e
14 changed files with 1050 additions and 1439 deletions
11
Makefile
Normal file
11
Makefile
Normal file
|
@ -0,0 +1,11 @@
|
|||
COMPOSE_FILES := postgres surrealdb postgres.dev 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
|
Loading…
Add table
Add a link
Reference in a new issue