-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 901 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (37 loc) · 901 Bytes
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
services:
db:
image: pgvector/pgvector:pg17
ports:
- "5432:5432"
environment:
POSTGRES_DB: dejaship
POSTGRES_USER: dejaship
POSTGRES_PASSWORD: dejaship
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dejaship"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./backend
ports:
- "8000:8000"
environment:
DEJASHIP_DATABASE_URL: postgresql+asyncpg://dejaship:dejaship@db:5432/dejaship
DEJASHIP_EMBEDDING_MODEL: BAAI/bge-base-en-v1.5
depends_on:
db:
condition: service_healthy
tunnel:
image: cloudflare/cloudflared:latest
command: tunnel run
environment:
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN}
depends_on:
backend:
condition: service_started
restart: unless-stopped
volumes:
pgdata: