forked from Jblast94/Dev-Stack-Clean
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.ai.yml
More file actions
64 lines (58 loc) · 1.49 KB
/
Copy pathdocker-compose.ai.yml
File metadata and controls
64 lines (58 loc) · 1.49 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
63
64
version: '3.8'
services:
# AI Model Server
pytorch-server:
image: pytorch/torchserve:latest-gpu
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./model-store:/home/model-server/model-store
ports:
- "8080:8080"
- "8081:8081"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# Stable Diffusion for Content Generation
stable-diffusion:
image: stability-ai/stable-diffusion:latest
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./sd-models:/models
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# Redis for Caching
redis:
image: redis:alpine
command: redis-server --save 20 1 --loglevel warning
volumes:
- redis_data:/data
# MongoDB for Content Storage
mongodb:
image: mongo:latest
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD:-changeThisPassword}
volumes:
- mongodb_data:/data/db
# RabbitMQ for Message Queue
rabbitmq:
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_PASSWORD:-changeThisPassword}
volumes:
redis_data:
mongodb_data: