调整为热加载

This commit is contained in:
2026-03-24 17:14:27 +08:00
parent bec12ba850
commit 00665ae701
4 changed files with 46 additions and 7 deletions
+29 -3
View File
@@ -1,13 +1,39 @@
services:
gmv-prefect-scheduler:
prefect-gmv-worker:
build:
context: .
dockerfile: Dockerfile
image: gmv-analytics-prefect:0.1.0
container_name: gmv-prefect-scheduler
container_name: prefect-gmv-worker
restart: unless-stopped
env_file:
- .env
environment:
PROJECT_MAPPING_FILE: /app/店铺映射表.xlsx
command: ["python", "prefect_gmv_scheduler.py", "--serve"]
develop:
watch:
- action: sync+restart
path: .
target: /app
ignore:
- .git/
- .venv/
- __pycache__/
- .pytest_cache/
- logs/
- "*.pyc"
- "Dockerfile"
- "docker-compose.yaml"
- "pyproject.toml"
- "supervisord.conf"
- "requirements-docker.txt"
- action: rebuild
path: Dockerfile
- action: rebuild
path: docker-compose.yaml
- action: rebuild
path: pyproject.toml
- action: rebuild
path: supervisord.conf
- action: rebuild
path: requirements-docker.txt