34 lines
796 B
YAML
34 lines
796 B
YAML
services:
|
|
prefect-inventory-worker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
|
image: inventory-analytics-prefect:0.1.0
|
|
container_name: prefect-inventory-worker
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- PYTHONUNBUFFERED=1
|
|
- PREFECT_API_URL=${PREFECT_API_URL:-http://host.docker.internal:4200/api}
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- .:/app
|
|
- ./logs:/app/logs
|
|
- ./reports:/app/reports
|
|
- uv_cache:/root/.cache/uv
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: "2.0"
|
|
memory: 4G
|
|
reservations:
|
|
cpus: "0.5"
|
|
memory: 512M
|
|
|
|
volumes:
|
|
uv_cache:
|