-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 870 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 870 Bytes
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
version: '3.8'
services:
backend:
build: ./backend
ports:
- "8000:8000"
env_file:
- .env
environment:
- BACKEND_CORS_ORIGINS=${BACKEND_CORS_ORIGINS}
- BACKEND_CORS_ORIGINS_REGEX=${BACKEND_CORS_ORIGINS_REGEX}
- PRESET_MODEL_NAME=${PRESET_MODEL_NAME}
- PRESET_TOKEN=${PRESET_TOKEN}
- LITELLM_API_KEY=${LITELLM_API_KEY}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 60s
timeout: 10s
retries: 3
start_period: 10s
frontend:
build:
context: ./frontend
args:
- VITE_API_URL=${VITE_API_URL}
- NODE_ENV=production
env_file:
- .env
environment:
- VITE_PRESET_MODEL_NAME=${PRESET_MODEL_NAME}
- VITE_PRESET_TOKEN=${PRESET_TOKEN}
ports:
- "80:80"
depends_on:
- backend