- docker-compose.yml: bind mount → named volume (auv_data:/app/data) - backend/database.py: DB_PATH 改为 data/stock_data.db,自动迁移旧数据库 - .gitignore: 忽略 *.db 文件 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
15 lines
248 B
YAML
15 lines
248 B
YAML
services:
|
|
app:
|
|
image: ${DOCKER_USER:-mirrors2}/auv:${VERSION:-latest}
|
|
container_name: auv
|
|
ports:
|
|
- "8000:8000"
|
|
env_file:
|
|
- .env
|
|
restart: unless-stopped
|
|
volumes:
|
|
- auv_data:/app/data
|
|
|
|
volumes:
|
|
auv_data:
|