28 lines
1.0 KiB
Makefile
Executable File
28 lines
1.0 KiB
Makefile
Executable File
# Dependencies
|
|
dependencies:
|
|
docker-compose -f ./deployment/dependencies/docker-compose.yaml up -d
|
|
|
|
# Self-hosted registry + Watchtower
|
|
registry-up:
|
|
docker compose -f ./deployment/registry/docker-compose.yaml up -d
|
|
registry-down:
|
|
docker compose -f ./deployment/registry/docker-compose.yaml down
|
|
deploy:
|
|
./scripts/deploy.sh
|
|
|
|
# Database
|
|
create-migration:
|
|
migrate create -ext sql -dir db/migrations -tz Local init
|
|
|
|
# --- for Macos
|
|
migrate:
|
|
migrate -database 'postgres://bank_admin:bank%40%2323%23%40_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations up
|
|
migrate-rollback:
|
|
migrate -database 'postgres://bank_admin:bank%40%2323%23%40_password@localhost:5424/bank_db?sslmode=disable' -path db/migrations down
|
|
|
|
# ---- for linux
|
|
# migrate:
|
|
# migrate -database 'postgresql://bank_admin:bank@#23#@_password@localhost:5454/bank_db?sslmode=disable' -path db/migrations up
|
|
# migrate-rollback:
|
|
# migrate -database 'postgresql://bank_admin:bank@#23#@_password@localhost:5454/bank_db?sslmode=disable' -path db/migrations down
|