Skip to content
Open
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
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ services:

redis:
image: redis:alpine
command: ["redis-server", "--maxmemory", "4096MB", "--maxmemory-policy", "allkeys-lru"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ideally we'd set this in CI too, but GH Actions doesn't let you pass a custom command to a service.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, that's fine. It wouldn't make a difference for our tests anyway.

healthcheck:
test: ["CMD", "redis-cli", "ping"]
start_period: 30s
Expand Down
4 changes: 4 additions & 0 deletions terraform/django.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ module "django" {
resource "heroku_addon" "redis" {
app_id = module.django.heroku_app_id
plan = "heroku-redis:mini"

config = {
maxmemory_policy = "allkeys-lru"
}
}

output "dns_nameservers" {
Expand Down