新增 Web 浏览端(Go+Vue 报表系统)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -7,3 +7,22 @@ services:
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
command: ["python", "-m", "src.main"]
|
||||
|
||||
web:
|
||||
build:
|
||||
context: ./web
|
||||
dockerfile: backend/Dockerfile
|
||||
env_file: ./web/backend/.env
|
||||
environment:
|
||||
- LISTEN_ADDR=:8080
|
||||
- FUTURES_DB_PATH=/app/data/futures.db
|
||||
- AUTH_DB_PATH=/app/auth/auth.db
|
||||
volumes:
|
||||
# futures.db 由 tushare 写入,web 端通过 DSN mode=ro&query_only 只读访问;
|
||||
# 不在容器层加 :ro,因为 WAL 模式下读访问也需要写 -shm 同步文件
|
||||
- ./data:/app/data
|
||||
# auth.db 由 web 自己写,落在 ./data/auth.db (已被 .gitignore)
|
||||
- ./data:/app/auth
|
||||
ports:
|
||||
- "8080:8080"
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user