This commit is contained in:
2025-05-28 08:51:25 -04:00
parent af918aab19
commit 30f68a9d04
4 changed files with 83 additions and 42 deletions

22
docker.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/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
}
$@