ai_pipeline/docker-compose.yml

41 lines
1023 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

networks:
ai-pipeline:
driver: bridge
volumes:
es-data:
qdrant-storage:
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.2.2
container_name: elasticsearch
user: "1000:1000"
environment:
- discovery.type=single-node # 单节点模式
- xpack.security.enabled=true # 开启安全
- ELASTIC_PASSWORD=12345 # 设置密码
# - xpack.security.http.ssl.enabled=false # 关闭 HTTPS
# - ES_JAVA_OPTS=-Xms1g -Xmx1g # JVM 初始堆内存大小1GB最大堆内存大小1GB
ports:
- "9210:9200"
volumes:
- es-data:/usr/share/elasticsearch/data
restart: unless-stopped
networks:
- ai-pipeline
qdrant:
image: qdrant/qdrant:latest
container_name: qdrant
environment:
QDRANT__SERVICE__API_KEY: 12345
ports:
- "6333:6333" # HTTP
- "6334:6334" # gRPC
volumes:
- qdrant-storage:/qdrant/storage
restart: unless-stopped
networks:
- ai-pipeline