-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
48 lines (44 loc) · 1.08 KB
/
compose.yml
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
version: '3'
services:
bot:
image: ghcr.io/joshbuker/discord-bot:main
depends_on:
- ollama
- automatic1111
restart: unless-stopped
tty: true
environment:
- RUBY_DISCORD_BOT_TOKEN=${RUBY_DISCORD_BOT_TOKEN:?Please configure RUBY_DISCORD_BOT_TOKEN}
- DEFAULT_LLM_MODEL=${DEFAULT_LLM_MODEL:-"llama3"}
# - OLLAMA_SERVICE_NAME=${OLLAMA_SERVICE_NAME:?Please configure OLLAMA_SERVICE_NAME}
automatic1111:
image: ghcr.io/joshbuker/automatic1111-docker:main
volumes:
- ~/Stable\ Diffusion/model:/model:ro
- venv:/app/venv
- repos:/app/repositories
tty: true
ports:
- 7860:7860
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ollama:
image: ollama/ollama
volumes:
- ollama:/root/.ollama
ports:
- 11434:11434
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
ollama: {}