chore: switch db port to 5433 and use pgvector image

This commit is contained in:
chengkai3
2026-04-12 21:46:31 +08:00
parent 2c854cc6af
commit 0fa6b043c6
6 changed files with 35 additions and 9 deletions
+4 -3
View File
@@ -127,14 +127,14 @@ jobs:
cat > docker-compose.prod.yml <<'YAML'
services:
db:
image: ${POSTGRES_IMAGE:-docker.m.daocloud.io/library/postgres:16-alpine}
image: ${POSTGRES_IMAGE:-docker.m.daocloud.io/pgvector/pgvector:pg16}
container_name: fquiz-db
environment:
POSTGRES_DB: ${POSTGRES_DB:-fquiz}
POSTGRES_USER: ${POSTGRES_USER:-fquiz}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fquiz}
ports:
- "5432:5432"
- "${POSTGRES_PORT:-5433}:5432"
volumes:
- fquiz_db_data:/var/lib/postgresql/data
healthcheck:
@@ -209,7 +209,8 @@ jobs:
POSTGRES_DB=fquiz
POSTGRES_USER=fquiz
POSTGRES_PASSWORD=fquiz
POSTGRES_IMAGE=docker.m.daocloud.io/library/postgres:16-alpine
POSTGRES_PORT=5433
POSTGRES_IMAGE=docker.m.daocloud.io/pgvector/pgvector:pg16
ENV
echo "[warn] .env 不存在,已写入默认模板,请尽快改成生产配置。"
fi