-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (42 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
45 lines (42 loc) · 1.2 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
39
40
41
42
43
44
45
version: "3.9"
services:
feather-api:
build:
context: .. # repo root (so Dockerfile can copy feather source)
dockerfile: feather-api/Dockerfile
image: feather-db-api:0.7.0
ports:
- "8000:8000"
volumes:
- feather-data:/data # persistent vector store
environment:
FEATHER_DATA_DIR: /data
FEATHER_DB_DIM: "768"
FEATHER_API_KEY: "${FEATHER_API_KEY:-feather-9ad2c644da0d76a253b9326bd4d15d16}"
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c",
"import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
feather-dashboard:
build:
context: ..
dockerfile: feather-api/Dockerfile.dashboard
image: feather-db-dashboard:0.7.0
ports:
- "7863:7863"
environment:
FEATHER_API_BASE: "http://feather-api:8000"
FEATHER_API_KEY: "${FEATHER_API_KEY:-feather-9ad2c644da0d76a253b9326bd4d15d16}"
FEATHER_NS: "demo"
FEATHER_DIM: "768"
DASHBOARD_PORT: "7863"
depends_on:
- feather-api
restart: unless-stopped
volumes:
feather-data:
driver: local