college-bot-v2/docker-compose.yml
nexy7574 d46ef03ba1
All checks were successful
Build and Publish / build_and_publish (push) Successful in 4m1s
Strip down docker container size
2024-07-01 18:50:22 +01:00

50 lines
1.4 KiB
YAML

services:
jimmy:
container_name: jimmy-v2
image: ghcr.io/nexy7574/college-bot:latest # alternatively: git.i-am.nexus/nex/college-bot:latest
restart: unless-stopped
tty: true
volumes:
- ./config.toml:/app/config.toml:ro
- ./jimmy.log:/app/jimmy.log
- /dev/dri:/dev/dri
- jimmy-data:/app/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /usr/bin/nmap:/usr/bin/nmap:ro
- /usr/bin/ffmpeg:/usr/bin/ffmpeg:ro
- /usr/bin/ffprobe:/usr/bin/ffprobe:ro
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
- redis # you can remove this if you remove the ollama and starboard cogs.
jimmy-webhook-server:
container_name: jimmy-webhook-server
image: ghcr.io/nexy7574/college-bot:latest # alternatively: git.i-am.nexus/nex/college-bot:latest
restart: unless-stopped
depends_on:
- redis
environment:
- REDIS=redis://redis:6379
ports:
- 1111:1111
command: ["/app/venv/bin/python", "/app/server.py"]
ollama:
image: ollama/ollama:latest
container_name: ollama
restart: unless-stopped
ports:
- 11434:11434
volumes:
- ollama-data:/root/.ollama
redis:
image: redis:latest
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis-data:/data
volumes:
ollama-data:
jimmy-data:
redis-data: