-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.66 KB
/
docker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.66 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
60
# Docker Compose for Sprite - Production Deployment
# Usage: docker compose up -d
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sprite-backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- SPRITE_API_HOST=0.0.0.0
- SPRITE_API_PORT=8000
- SPRITE_IMAGE_API_KEY=${SPRITE_IMAGE_API_KEY}
- SPRITE_IMAGE_API_URL=${SPRITE_IMAGE_API_URL:-https://api.siliconflow.cn/v1/images/generations}
- SPRITE_IMAGE_MODEL=${SPRITE_IMAGE_MODEL:-Qwen/Qwen-Image}
- SPRITE_VLM_API_KEY=${SPRITE_VLM_API_KEY}
- SPRITE_VLM_API_URL=${SPRITE_VLM_API_URL:-https://api.siliconflow.cn/v1/chat/completions}
- SPRITE_VLM_MODEL=${SPRITE_VLM_MODEL:-Pro/moonshotai/Kimi-K2.5}
- SPRITE_STORAGE_PATH=/app/data/generated
- SPRITE_ASSET_DATA_PATH=/app/data/assets
volumes:
- sprite-data:/app/data
healthcheck:
test: ["CMD", "python", "-c", "import httpx; httpx.get('http://localhost:8000/v1/health').raise_for_status()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- sprite-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sprite-frontend
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
- sprite-network
volumes:
sprite-data:
driver: local
networks:
sprite-network:
driver: bridge