-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (29 loc) · 853 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (29 loc) · 853 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
version: '3.8'
services:
image-gen:
build: .
container_name: image-gen-api
ports:
- "8000:8000"
environment:
# LiteLLM Configuration (Primary)
- LITELLM_BASE_URL=${LITELLM_BASE_URL:-}
- LITELLM_API_KEY=${LITELLM_API_KEY:-}
# Direct Provider API Keys (Fallback)
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
# Storage Configuration
- STORAGE_PATH=/app/generated_images
- BASE_URL=${BASE_URL:-http://localhost:8000}
# Security (Optional)
- API_BEARER_TOKEN=${API_BEARER_TOKEN:-}
# Model Registry
- MODEL_CACHE_TTL=${MODEL_CACHE_TTL:-3600}
volumes:
- ./generated_images:/app/generated_images
restart: unless-stopped
networks:
- image-gen-network
networks:
image-gen-network:
driver: bridge