-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (41 loc) · 962 Bytes
/
docker-compose.yml
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
services:
db:
image: pgvector/pgvector:pg15
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: talkdai
POSTGRES_PASSWORD: talkdai
POSTGRES_DB: talkdai
volumes:
- db-data:/var/lib/postgresql/data
- ./ext/db-ext-vector.sql:/docker-entrypoint-initdb.d/db-ext-vector.sql
healthcheck:
test: ["CMD", "pg_isready", "-d", "talkdai", "-U", "talkdai"]
interval: 10s
timeout: 5s
retries: 5
dialog:
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
volumes:
- ./:/app
- ./static:/app/static
- ./sample_data:/app/src/sample_data
ports:
- '8000:8000'
depends_on:
db:
condition: service_healthy
environment:
- DATABASE_URL=postgresql://talkdai:talkdai@db:5432/talkdai
- STATIC_FILE_LOCATION=/app/static
env_file:
- .env
volumes:
open-webui:
db-data: