Skip to content

Commit

Permalink
Merge pull request #240 from sugarforever/feature/docker-compose-redis
Browse files Browse the repository at this point in the history
feat: added Redis to docker compose services
  • Loading branch information
sugarforever authored Apr 9, 2024
2 parents 9e78690 + 944494b commit 8778c1c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
environment:
- CHROMADB_URL=http://chromadb:8000
- DATABASE_URL=file:/app/sqlite/chatollama.sqlite
- REDIS_HOST=redis
image: 0001coder/chatollama:latest
ports:
- "3000:3000"
Expand All @@ -20,5 +21,12 @@ services:
volumes:
- ~/.chatollama:/app/sqlite

redis:
image: redis:latest
restart: always
volumes:
- redis_data:/data

volumes:
chromadb_data:
redis_data:
9 changes: 8 additions & 1 deletion docker-compose_gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
capabilities: [ gpu ]
chromadb:
image: chromadb/chroma
ports:
Expand All @@ -27,6 +27,7 @@ services:
environment:
- CHROMADB_URL=http://chromadb:8000
- DATABASE_URL=file:/app/sqlite/chatollama.sqlite
- REDIS_HOST=redis
image: 0001coder/chatollama:latest
ports:
- "3000:3000"
Expand All @@ -35,6 +36,12 @@ services:
volumes:
- ~/.chatollama:/app/sqlite

redis:
image: redis:latest
restart: always
volumes:
- redis_data:/data

volumes:
chromadb_data:
ollama_data:

0 comments on commit 8778c1c

Please sign in to comment.