diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a6353d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.envrc diff --git a/docker-compose.yml b/docker-compose.yml index e69de29..812691e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +services: + postgres: + container_name: postgres + image: docker.io/postgres:18-alpine + restart: unless-stopped + ports: + - 5432:5432 + environment: + - POSTGRES_USER + - POSTGRES_PASSWORD + - POSTGRES_DB + healthcheck: + test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] + interval: 5s + timeout: 5s + retries: 5 diff --git a/justfile b/justfile new file mode 100644 index 0000000..84d4fa3 --- /dev/null +++ b/justfile @@ -0,0 +1,10 @@ +default: + just --list + +[group("db")] +compose-up: + podman-compose up -d + +[group("db")] +compose-down: + podman-compose down