aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--justfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/justfile b/justfile
index 88c8152..ddc4f04 100644
--- a/justfile
+++ b/justfile
@@ -26,13 +26,13 @@ PG_DOCKER_URL := "postgres://" + PG_USER + ":" + PG_PASS + "@host.docker.interna
@start-spice: migrate-spice
docker start spice || docker run -d --add-host host.docker.internal:host-gateway --name spice -p 50051:50051 -p 9090:9090 -p 8080:8080 -p 9443:8443 authzed/spicedb serve --grpc-preshared-key "sup3rs3cr3tk3y" --http-enabled --datastore-engine postgres --datastore-conn-uri "{{PG_DOCKER_URL}}"
-@_start_postgres: apply-secd-tables
+@_start_postgres:
docker start secddb || docker run -d --name secddb -e POSTGRES_PASSWORD={{PG_PASS}} -e POSTGRES_USER={{PG_USER}} -e POSTGRES_DB={{PG_DB}} -p {{PG_PORT}}:5432 postgres:14 -c log_statement=all
@start-mailserver:
docker start mailhog || docker run -d --name mailhog -p 7180:8025 -p 25:1025 mailhog/mailhog:latest
-@apply-secd-tables:
+@apply-secd-tables: start-postgres
sqlx migrate run --database-url {{PG_URL}} --source crates/secd/store/pg/migrations secd;
@clean: