版本变更V3.31添加识图功能

This commit is contained in:
dxc
2026-05-22 13:12:28 +08:00
parent 3ffcd35093
commit ee9b19e72a

View File

@ -1,9 +1,9 @@
version: '3.8' version: '3.8'
services: services:
# --- 数据库 (保持不变) --- # --- 数据库 (已修改为自带 pgvector 的镜像) ---
db: db:
image: postgres:15-alpine image: pgvector/pgvector:pg15
container_name: inventory_db_prod container_name: inventory_db_prod
restart: always restart: always
environment: environment:
@ -11,6 +11,7 @@ services:
POSTGRES_PASSWORD: StrongPassword123! POSTGRES_PASSWORD: StrongPassword123!
POSTGRES_DB: inventory_system POSTGRES_DB: inventory_system
volumes: volumes:
# 数据卷保持不变,你的历史数据不会丢失!
- ./pgdata_prod:/var/lib/postgresql/data - ./pgdata_prod:/var/lib/postgresql/data
# --- 后端 (Flask) (保持不变) --- # --- 后端 (Flask) (保持不变) ---
@ -29,7 +30,7 @@ services:
depends_on: depends_on:
- db - db
# --- 前端 (Nginx + Vue) (这是需要修改的部分) --- # --- 前端 (Nginx + Vue) (包含 HTTPS 配置) ---
frontend: frontend:
build: build:
context: ./inventory-web context: ./inventory-web