-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.52 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
services:
db:
image: pgvector/pgvector:pg17
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-odoo_expert}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./src/sqls/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
odoo-expert:
image: mfydev/odoo-expert:latest
depends_on:
db:
condition: service_healthy
ports:
- "8000:8000" # API port
- "8501:8501" # UI port
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres} # Fixed defaults
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-odoo_expert}
- POSTGRES_HOST=db
- POSTGRES_PORT=5432 # This should be 5432 since we're inside Docker network
- OPENAI_API_KEY=${OPENAI_API_KEY}
- OPENAI_API_BASE=${OPENAI_API_BASE}
- LLM_MODEL=${LLM_MODEL:-gpt-4}
- BEARER_TOKEN=${BEARER_TOKEN}
- CORS_ORIGINS=${CORS_ORIGINS:-*}
volumes:
- ./raw_data:/app/raw_data:rw
- ./markdown:/app/markdown:rw
- logs_volume:/app/logs:rw
healthcheck:
test: ["CMD", "python", "docker/healthcheck.py"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s # Added start period
volumes:
postgres_data:
logs_volume: