Skip to content

Commit

Permalink
Upgrade redis and set specific version
Browse files Browse the repository at this point in the history
Different versions of the redis-py library support different versions of
redis. Use an explicit version in docker-compose.yml and update python
dependency to a version which supports it.
  • Loading branch information
alastair committed Feb 12, 2025
1 parent 9b0bea2 commit 48fa117
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ services:

# Redis (caches)
redis:
image: redis:alpine
image: redis:7.4.2
command: redis-server --port 6379

# Celery broker (queue manager)
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pysolr==3.10.0b1
python-louvain==0.16 # community detection in clustering
pytz==2023.3
PyYAML==6.0.1
redis==3.2.0
redis==5.2.1
scikit-learn==1.4.1.post1 # clustering
scipy==1.12.0 # clustering
sentry-sdk[django]~=2.21.0
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ asgiref==3.7.2
# django-cors-headers
asttokens==2.4.1
# via stack-data
async-timeout==5.0.1
# via redis
autopep8==1.5.7
# via
# -r requirements.in
Expand Down Expand Up @@ -276,7 +278,7 @@ pyyaml==6.0.1
# via
# -r requirements.in
# djangorestframework-yaml
redis==3.2.0
redis==5.2.1
# via
# -r requirements.in
# django-redis
Expand Down

0 comments on commit 48fa117

Please sign in to comment.