-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (55 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
59 lines (55 loc) · 1.41 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
55
56
57
58
59
version: '3.8'
services:
# PostgreSQL Database
database:
image: postgres:15
environment:
POSTGRES_DB: ${POSTGRES_DB:-financial_chat}
POSTGRES_USER: ${POSTGRES_USER:-financial_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U financial_user"]
interval: 10s
timeout: 5s
retries: 5
# Go Backend
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- PORT=${PORT:-8080}
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- PRIMARY_LLM=${PRIMARY_LLM:-openai}
- OPENAI_MODEL=${OPENAI_MODEL:-gpt-4}
- ANTHROPIC_MODEL=${ANTHROPIC_MODEL:-claude-3-sonnet-20240229}
depends_on:
database:
condition: service_healthy
restart: unless-stopped
# Frontend (Node.js development server)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- REACT_APP_BACKEND_URL=${REACT_APP_BACKEND_URL:-http://localhost:8080}
depends_on:
- backend
restart: unless-stopped
volumes:
postgres_data: