Skip to content

Commit

Permalink
docker: switch to valkey
Browse files Browse the repository at this point in the history
Recently-ish redis has switched to another license which isn't
open-source. An open-source fork named valkey has been established
under the Linux Foundation umbrella:
https://www.linuxfoundation.org/press/linux-foundation-launches-open-source-valkey-community

See also this LWN article:
https://lwn.net/Articles/966631/

valkey is a drop-in replacement for redis. Switch to valkey to
avoid depending on proprietary software.
  • Loading branch information
emersion authored and multun committed Jun 5, 2024
1 parent cb12000 commit 44a5843
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ services:
interval: 5s

redis:
image: redis
image: valkey/valkey:alpine
container_name: osrd-redis
restart: unless-stopped
ports: ["6379:6379"]
volumes:
- "redis_data:/data"
command: "redis-server --save 30 1 --loglevel warning"
command: "valkey-server --save 30 1 --loglevel warning"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: ["CMD", "valkey-cli", "ping"]
start_period: 4s
interval: 5s

Expand Down

0 comments on commit 44a5843

Please sign in to comment.