Spaces:
Sleeping
Sleeping
Upload docker-compose.yml
Browse files- docker-compose.yml +25 -0
docker-compose.yml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
qdrant:
|
| 3 |
+
image: qdrant/qdrant:v1.12.5
|
| 4 |
+
ports:
|
| 5 |
+
- "${QDRANT_PORT:-6333}:6333"
|
| 6 |
+
volumes:
|
| 7 |
+
- qdrant_storage:/qdrant/storage
|
| 8 |
+
restart: unless-stopped
|
| 9 |
+
|
| 10 |
+
# Build and run pipelines against the qdrant service above, e.g.:
|
| 11 |
+
# docker compose run --rm -e QDRANT_HOST=qdrant app python data_pipeline.py
|
| 12 |
+
app:
|
| 13 |
+
build: .
|
| 14 |
+
image: doc-reader:local
|
| 15 |
+
environment:
|
| 16 |
+
QDRANT_HOST: qdrant
|
| 17 |
+
QDRANT_PORT: 6333
|
| 18 |
+
volumes:
|
| 19 |
+
- ./raw_docs:/app/raw_docs:ro
|
| 20 |
+
- ./stored_images:/app/stored_images
|
| 21 |
+
depends_on:
|
| 22 |
+
- qdrant
|
| 23 |
+
profiles:
|
| 24 |
+
- tools
|
| 25 |
+
entrypoint: ["python"]
|