Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions docker-compose-redis.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,57 @@
version: '3.8'

services:
nodebb:
user: "0"
build: .
# image: ghcr.io/nodebb/nodebb:latest
restart: unless-stopped
ports:
- '4567:4567' # comment this out if you don't want to expose NodeBB to the host, or change the first number to any port you want
- '4567:4567'
volumes:
- nodebb-build:/usr/src/app/build
- nodebb-uploads:/usr/src/app/public/uploads
- nodebb-config:/opt/config
- ./install/docker/setup.json:/usr/src/app/setup.json

environment:
- OLLAMA_URL=http://ollama:11434/api/chat
depends_on:
- redis
- ollama
redis:
image: redis:8.4.0-alpine
restart: unless-stopped
command: ['redis-server', '--appendonly', 'yes', '--loglevel', 'warning']
# command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"] # uncomment if you want to use snapshotting instead of AOF
volumes:
- redis-data:/data

ollama:
image: ollama/ollama:latest
restart: unless-stopped
volumes:
- ollama-data:/root/.ollama
entrypoint: ["/bin/sh", "-c", "ollama serve & sleep 5 && ollama pull llama3.1:8b && wait"]
Comment on lines +26 to +30

Copilot AI Apr 4, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new ollama service uses ollama/ollama:latest, which makes builds non-reproducible and can introduce breaking changes unexpectedly. Pin the image to a specific version tag (and ideally make the pulled model configurable via an env var) to improve deployment stability.

Suggested change
image: ollama/ollama:latest
restart: unless-stopped
volumes:
- ollama-data:/root/.ollama
entrypoint: ["/bin/sh", "-c", "ollama serve & sleep 5 && ollama pull llama3.1:8b && wait"]
image: ollama/ollama:0.3.14
restart: unless-stopped
environment:
- OLLAMA_MODEL=${OLLAMA_MODEL:-llama3.1:8b}
volumes:
- ollama-data:/root/.ollama
entrypoint: ["/bin/sh", "-c", "ollama serve & sleep 5 && ollama pull \"$OLLAMA_MODEL\" && wait"]

Copilot uses AI. Check for mistakes.
volumes:
redis-data:
driver: local
driver_opts:
o: bind
type: none
device: ./.docker/database/redis

nodebb-build:
driver: local
driver_opts:
o: bind
type: none
device: ./.docker/build

nodebb-uploads:
driver: local
driver_opts:
o: bind
type: none
device: ./.docker/public/uploads

nodebb-config:
driver: local
driver_opts:
o: bind
type: none
device: ./.docker/config
ollama-data:
driver: local
Loading
Loading