-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
20 lines (13 loc) · 849 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clean-postgres1:
docker stop marketplace1 || true && docker rm marketplace1 || true
clean-postgres2:
docker stop marketplace2 || true && docker rm marketplace2 || true
postgres1:
docker run --name marketplace1 --network postgres -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_DB=ds_db -e POSTGRES_PASSWORD=1700455 -d postgres:13.2
postgres2:
docker run --name marketplace2 --network postgres -p 4200:5432 -e POSTGRES_USER=postgres -e POSTGRES_DB=ds_db -e POSTGRES_PASSWORD=1700455 -d postgres:13.2
migrate1:
migrate -path migrations-1 -database "postgresql://postgres:1700455@localhost:5432/ds_db?sslmode=disable" -verbose up
migrate2:
migrate -path migrations-2 -database "postgresql://postgres:1700455@localhost:4200/ds_db?sslmode=disable" -verbose up
.PHONY: postgres1 postgres2 migrate1 migrate2 clean-postgres1 clean-postgres2