fix(market-data): 增加同步进度日志并修复生产目录权限
This commit is contained in:
@@ -51,11 +51,28 @@ services:
|
||||
context: ./zhixing-server
|
||||
target: production
|
||||
command: ["alembic", "upgrade", "head"]
|
||||
depends_on:
|
||||
market-data-init:
|
||||
condition: service_completed_successfully
|
||||
environment:
|
||||
ZHIXING_DATABASE_URL: ${ZHIXING_DATABASE_URL:?Set ZHIXING_DATABASE_URL to the 1Panel PostgreSQL URL}
|
||||
networks:
|
||||
- 1panel-network
|
||||
|
||||
# Named volumes are initialized as root; normalize ownership before app jobs run.
|
||||
market-data-init:
|
||||
profiles: ["jobs"]
|
||||
build:
|
||||
context: ./zhixing-server
|
||||
target: production
|
||||
user: "0:0"
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- mkdir -p /app/data/market-data && chown -R 10001:10001 /app/data/market-data
|
||||
volumes:
|
||||
- market-data:/app/data/market-data
|
||||
|
||||
market-sync:
|
||||
profiles: ["jobs"]
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user