-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
26 lines (25 loc) · 1.32 KB
/
Copy pathcompose.yaml
File metadata and controls
26 lines (25 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
services:
processing:
build:
context: .
target: processing
args:
PYTORCH_VERSION: ${OBSERVATION_PYTORCH_VERSION:-2.7.1}
PYTORCH_INDEX_URL: ${OBSERVATION_PYTORCH_INDEX_URL:-https://download.pytorch.org/whl/cu118}
image: urban-observation-processing:local
restart: unless-stopped
networks: [processing-network]
environment:
OPENAI_API_KEY: ${OBSERVATION_OPENAI_API_KEY:-}
GOOGLE_PLACES_API_KEY: ${OBSERVATION_GOOGLE_PLACES_API_KEY:-}
URBAN_ENRICHMENT_ANOMALY_ONLY: ${OBSERVATION_ANOMALY_ONLY:-false}
URBAN_ENRICHMENT_CACHE: /output/enrichment.sqlite3
HF_HOME: /output/huggingface-cache
volumes:
- ${OBSERVATION_OUTPUT_HOST:?Run ./docker-start instead}:/output
ports:
- "${OBSERVATION_RECEIVER_BIND_HOST:-127.0.0.1}:${OBSERVATION_RECEIVER_PORT:-8766}:8766"
command: ["python", "-m", "processing.service", "--host", "0.0.0.0", "--port", "8766", "--output", "/output/${OBSERVATION_OUTPUT_FILE:-observations.jsonl}", "--max-message-bytes", "${OBSERVATION_MAX_MESSAGE_BYTES:-25000000}", "--anomaly-threshold", "${OBSERVATION_ANOMALY_THRESHOLD:-0.25}", "--text-model", "${OBSERVATION_TEXT_MODEL:-gpt-4o-mini}", "--vision-model", "${OBSERVATION_VISION_MODEL:-gpt-4o-mini}"]
networks:
processing-network:
name: urban-observations-processing