39 lines
889 B
YAML
39 lines
889 B
YAML
x-default: &default
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 100m
|
|
max-file: "3"
|
|
|
|
services:
|
|
qdrant:
|
|
<<: *default
|
|
image: qdrant/qdrant:${QDRANT_VERSION:-v1.15.4}
|
|
ports:
|
|
- "${QDRANT_HTTP_PORT:-6333}:6333"
|
|
- "${QDRANT_GRPC_PORT:-6334}:6334"
|
|
volumes:
|
|
- qdrant_data:/qdrant/storage:z
|
|
environment:
|
|
- TZ=${TZ:-UTC}
|
|
- QDRANT__SERVICE__API_KEY=${QDRANT_API_KEY}
|
|
- QDRANT__SERVICE__JWT_RBAC=${QDRANT_JWT_RBAC:-false}
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1.0'
|
|
memory: 1G
|
|
reservations:
|
|
cpus: '0.5'
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:6333/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
qdrant_data:
|