-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1 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
# PromptTriage — Docker Compose (Local Development)
# Run: docker-compose up --build
services:
frontend:
build:
context: ./promptrefiner-ui
dockerfile: Dockerfile
args:
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL}
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: ${NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY}
ports:
- "3000:3000"
env_file:
- ./promptrefiner-ui/.env.local
environment:
- RAG_API_URL=http://backend:8080
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8080:8080"
env_file:
- ./backend/.env
environment:
- FRONTEND_URL=http://localhost:3000
healthcheck:
test: [ "CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')" ]
interval: 10s
timeout: 5s
retries: 3
start_period: 15s
restart: unless-stopped