调整为热加载
This commit is contained in:
+29
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user