Similarity_Search / docker-compose.yml
amaye15
Refactor
abfb1fb
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: similarity-search-app
ports:
- "7860:7860"
volumes:
- ./src:/app/src # Mount the local src directory for hot reloading
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
interval: 30s
timeout: 10s
retries: 3
# Could be useful later on
# depends_on:
# - db # If you have a database service, add it here
# # Example database service (optional)
# db:
# image: postgres:latest
# container_name: similarity-search-db
# environment:
# POSTGRES_USER: user
# POSTGRES_PASSWORD: password
# POSTGRES_DB: mydatabase
# ports:
# - "5432:5432"
# volumes:
# - postgres_data:/var/lib/postgresql/data
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U user -d mydatabase"]
# interval: 5s
# timeout: 5s
# retries: 5
# volumes:
# postgres_data: