23 lines
408 B
Bash
Executable File
23 lines
408 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
up () {
|
|
docker run \
|
|
--detach \
|
|
--name cp2-pg \
|
|
--restart unless-stopped \
|
|
--env-file $HOME/scripts-private/lech/cavepedia-v2/cp2-pg.env \
|
|
--volume /mammoth/cp2/cp2-pg/data:/var/lib/postgresql/data:rw \
|
|
--publish 127.0.0.1:4010:5432 \
|
|
--network pew-net \
|
|
pgvector/pgvector:pg17
|
|
}
|
|
|
|
down () {
|
|
docker stop cp2-pg || true
|
|
docker rm cp2-pg || true
|
|
}
|
|
|
|
$@
|