-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (39 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
42 lines (39 loc) · 1.34 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
version: '3.8'
services:
devtools-frontend:
build:
context: ..
dockerfile: docker/Dockerfile
image: devtools-frontend:latest
container_name: devtools-frontend
ports:
- "8000:8000"
restart: unless-stopped
# volumes:
# For development: mount the built files directly (optional)
# Uncomment the lines below to use local files instead of container files
# volumes:
# - ../out/Default/gen/front_end:/usr/share/nginx/html:ro
environment:
- NGINX_HOST=localhost
- NGINX_PORT=8000
# Runtime API key injection - keys are passed to container at runtime
# These are injected into the DevTools frontend via runtime-config.js
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- GROQ_API_KEY=${GROQ_API_KEY:-}
- LITELLM_API_KEY=${LITELLM_API_KEY:-}
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- devtools-network
networks:
devtools-network:
driver: bridge
# Optional: Add a development configuration
# Use: docker-compose -f docker/docker-compose.yml -f docker/docker-compose.dev.yml up
# Create docker-compose.dev.yml for development-specific overrides