Spaces:
Paused
Paused
File size: 1,073 Bytes
eb58fc5 |
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 27 28 29 30 31 32 33 34 35 36 37 38 39 |
version: '3.8'
services:
# Your Python Application Service
app:
build:
context: .
dockerfile: Dockerfile # Assuming your Dockerfile is named Dockerfile
container_name: app
user: "user" # Matching the user created in your Dockerfile
ports:
- "7860:7860" # Expose your application's port
environment:
- HOME=/home/user
- PATH=/home/user/.local/bin:$PATH
- AZURE_DEPLOYMENT=true
- AZURE_QDRANT_INMEM=true # False means use Qdrant service from the network
depends_on:
- qdrant # Ensure Qdrant starts before this service
volumes:
- .:/home/user/app # Mount current directory to container
# Qdrant Service
qdrant:
image: qdrant/qdrant:latest
restart: always
container_name: qdrant
ports:
- "6333:6333"
- "6334:6334"
expose:
- "6333"
- "6334"
- "6335"
# volumes:
# - ./qdrant_data:/qdrant/storage # Persist Qdrant data
# - ./qdrant_config/production.yaml:/qdrant/config/production.yaml # Mount configuration file
|