wasp/waspc/examples/pg-vector-example/run_db.sh
2023-09-12 13:03:57 +02:00

7 lines
374 B
Bash
Executable File

#! /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'"