-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
41 lines (39 loc) · 1016 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
version: "3.3"
services:
db:
image: pgvector/pgvector:pg15
restart: always
volumes:
- ./etc/db-ext-vector-test.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: talkdai
POSTGRES_PASSWORD: talkdai
POSTGRES_DB: test_talkdai
POSTGRES_EXTENSIONS: vector
healthcheck:
test: ["CMD", "pg_isready", "-d", "test_talkdai", "-U", "talkdai"]
interval: 10s
timeout: 5s
retries: 5
dialog:
build:
context: .
dockerfile: Dockerfile
command: pytest -vvv
stdin_open: true
tty: true
depends_on:
db:
condition: service_healthy
volumes:
- ./dialog_lib/:/app/dialog_lib/
- ./samples/:/app/samples/
environment:
POSTGRES_USER: talkdai
POSTGRES_PASSWORD: talkdai
POSTGRES_DB: test_talkdai
POSTGRES_HOST: db
DATABASE_URL: postgresql://talkdai:talkdai@db:5432/test_talkdai
volumes:
postgres_data: