mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-03 11:11:30 +08:00
Avoid port conflicts when running multiple examples: - dirty_example: 8001 - embedding_service: 8002 - celery_alternative: 8003
14 lines
396 B
YAML
14 lines
396 B
YAML
services:
|
|
embedding-service:
|
|
build:
|
|
context: ../..
|
|
dockerfile: examples/embedding_service/Dockerfile
|
|
ports:
|
|
- "8002:8000"
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5)"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s # Model loading time
|