-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.15 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
46
47
48
49
50
51
52
53
54
version: "3.9"
services:
db:
image: ankane/pgvector:latest
restart: unless-stopped
environment:
POSTGRES_DB: flashback
POSTGRES_USER: flashback
POSTGRES_PASSWORD: flashback
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U flashback"]
interval: 5s
timeout: 5s
retries: 10
sidecar:
build:
context: ./python-sidecar
dockerfile: Dockerfile
restart: unless-stopped
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
ports:
- "8081:8081"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/health"]
interval: 10s
timeout: 5s
retries: 5
server:
build: .
restart: unless-stopped
depends_on:
db:
condition: service_healthy
sidecar:
condition: service_healthy
environment:
DATABASE_URL: postgres://flashback:flashback@db:5432/flashback
SIDECAR_URL: http://sidecar:8081
HOST: 0.0.0.0
PORT: 8080
RUST_LOG: flashback=info,tower_http=debug
ports:
- "8080:8080"
volumes:
pgdata: