Skip to content

Commit

Permalink
Refactor Docker Compose files to remove redundant Redis service
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Apr 15, 2024
1 parent c460481 commit c3c1e12
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
8 changes: 0 additions & 8 deletions docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,3 @@ services:
- /var/www/certbot:/var/www/certbot # Let's Encrypt challenge responses
depends_on:
- brazil-blog-web

redis:
image: redis:latest
ports:
- "6379:6379"

volumes:
redis_data:
5 changes: 0 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@ services:
- ./src:/code
ports:
- 8000:8000

redis:
image: redis:latest
ports:
- "6379:6379"
7 changes: 2 additions & 5 deletions src/brazil_blog/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,8 @@

CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://redis:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "unique-snowflake"
}
}

Expand Down

0 comments on commit c3c1e12

Please sign in to comment.