You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
485 B
Makefile

PG_URI?=""
start-local:
mkdir -p ./.pg_data && \
chown $$(id -u):$$(id -g) ./.pg_data && \
UID=$$(id -u) GID=$$(id -g) docker compose up -d
.PHONY: start-local
stop-local:
docker compose down
.PHONY: stop-local
river-migrate:
river migrate-up --database-url $(PG_URI)
.PHONY: river-migrate
db-connect:
psql $(PG_URI)
.PHONY: db-connect
local-traces:
xdg-open http://localhost:16686
.PHONY: local-traces
local-metrics:
xdg-open http://localhost:9090
.PHONY: local-metrics