-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.37 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
61
62
version: '3.8'
services:
# AI Composition Assistant API
composition-api:
build:
context: .
dockerfile: Dockerfile
container_name: composition-assistant-api
ports:
- "8000:8000"
environment:
- PYTHONPATH=/app
- MODEL_CACHE_DIR=/app/models/cache
- LOG_LEVEL=INFO
volumes:
- ./models:/app/models
- ./configs:/app/configs
- model_cache:/app/models/cache
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Nginx reverse proxy for web interface
nginx:
image: nginx:alpine
container_name: composition-assistant-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./web:/usr/share/nginx/html
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/nginx/ssl # For SSL certificates if needed
depends_on:
- composition-api
restart: unless-stopped
# Redis for caching (optional)
redis:
image: redis:alpine
container_name: composition-assistant-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
command: redis-server --appendonly yes
volumes:
model_cache:
driver: local
redis_data:
driver: local
networks:
default:
name: composition-assistant-network