ollama-discord-bot/docker-compose.yaml
cybrneko cea0ba39bc
Some checks failed
Release / Release (push) Has been cancelled
Release / Docker (push) Has been cancelled
Release / Update develop branch (push) Has been cancelled
Release / Docker pre-release (push) Has been cancelled
initial commit of my fork of the code
2025-05-10 00:19:54 -05:00

65 lines
1.2 KiB
YAML

version: '3'
services:
# If you want Ollama to run in docker, this can be used.
# Have only been tested to run on CPU, not GPU.
# ollama:
# container_name: ollama
# image: ollama/ollama
# # restart: always
# volumes:
# - ollama:/root/.ollama
# networks:
# - ollama
# expose:
# - 11434
# healthcheck:
# test: "bash -c 'cat < /dev/null > /dev/tcp/localhost/11434'"
# interval: 30s
# timeout: 10s
# retries: 5
bot:
container_name: bot
build:
context: .
dockerfile: Dockerfile
restart: always
stop_grace_period: 1s
env_file:
- bot.env
networks:
- ollama
- redis
extra_hosts:
- host.docker.internal:host-gateway
depends_on:
redis:
condition: service_healthy
# ollama:
# condition: service_healthy
redis:
container_name: redis
image: redis/redis-stack-server:latest
restart: always
volumes:
- /portainer/Files/AppData/Config/discordluna/redis:/data
networks:
- redis
expose:
- 6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 5
networks:
redis:
ollama:
volumes:
redis:
ollama: