-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 1.38 KB
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
# ─────────────────────────────────────────────
# JurisFind – Docker Compose (Production on Azure VM)
# Usage:
# docker compose up -d → start
# docker compose down → stop
# docker compose logs -f api → live logs
# docker compose pull && docker compose up -d --build → redeploy
# ─────────────────────────────────────────────
version: "3.9"
services:
api:
build:
context: ./api
dockerfile: Dockerfile
container_name: jurisfind_api
restart: always
ports:
# Only expose to localhost — Nginx proxies from port 80 to here
- "127.0.0.1:8000:8000"
env_file:
# Copy api/.env.example → api/.env on the VM and fill in real values
- ./api/.env
volumes:
# Persist local FAISS index & PDFs if not using Azure Blob
- ./api/data:/app/data
# Temp dir for confidential uploads (cleared between restarts is fine)
- confidential_tmp:/tmp/confidential_uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s # give sentence-transformers time to load on first boot
volumes:
confidential_tmp: