wasp/waspc/examples/pg-vector-example/run_db.sh

7 lines
374 B
Bash
Raw Normal View History

#! /bin/bash
set -e
docker run --name wasp_db_pg-vector-example -d --rm --publish 5432:5432 -v pg-vector-example:/var/lib/postgresql/data --env POSTGRES_PASSWORD=devpass ankane/pgvector
echo "Make sure to execute the following command before running the example:"
echo "docker exec -it wasp_db_pg-vector-example psql -U postgres -c 'CREATE EXTENSION IF NOT EXISTS vector'"