just: add db{start,stop} targets [skip ci]

This commit is contained in:
leo 2023-05-03 23:58:23 +02:00
parent 0a5d4e7d30
commit 6c061fb94f
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -28,3 +28,18 @@ dev: build run
# generate code based on ent schemas.
gen:
go generate -v ./ent
# start pg.
dbstart:
podman run \
--name pg \
--rm \
-it \
-e POSTGRES_PASSWORD=postgres \
-v $PWD/tmp/db:/var/lib/postgres/data \
-p 127.0.0.1:5432:5432 \
docker.io/library/postgres:15.2-alpine3.17
# stop pg.
dbstop:
podman stop pg