
Getting started with Valkey and Finch
If you are using Finch and want to run Valkey, read this guide to show you how to get this up and running
INFO[0000] Creating volume local-valkey_valkey-data
WARN[0000] Ignoring: service valkey: [HealthCheck]
INFO[0000] Ensuring image valkey/valkey:7.2.5
INFO[0000] Re-creating container valkey
INFO[0000] Attaching to logs
valkey |chown: changing ownership of '.': Permission denied
INFO[0000] Container "valkey" exited
INFO[0000] All the containers have exited
finch volume create valkey-data
services:
valkey:
container_name: valkey
hostname: valkey
image: valkey/valkey:7.2.5
volumes:
- ./conf/valkey.conf:/etc/valkey/valkey.conf
- valkey-data:/data
command: valkey-server /etc/valkey/valkey.conf
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
interval: 1s
timeout: 3s
retries: 5
ports:
- 6379:6379
volumes:
valkey-data:
└── finch
├── conf
│ └── valkey.conf
├── data
└── valkey.yml
finch compose -p local-valkey -f valkey.yml up
valkey |1:C 18 Jul 2024 06:11:03.711 * oO0OoO0OoO0Oo Valkey is starting oO0OoO0OoO0Oo
valkey |1:C 18 Jul 2024 06:11:03.711 * Valkey version=7.2.5, bits=64, commit=00000000, modified=0, pid=1, just started
valkey |1:C 18 Jul 2024 06:11:03.711 * Configuration loaded
valkey |1:M 18 Jul 2024 06:11:03.711 * Loading RDB produced by valkey version 7.2.5
valkey |1:M 18 Jul 2024 06:11:03.711 * RDB age 24 seconds
valkey |1:M 18 Jul 2024 06:11:03.711 * RDB memory usage when created 0.86 Mb
valkey |1:M 18 Jul 2024 06:11:03.711 * Done loading RDB, keys loaded: 0, keys expired: 0.
valkey |1:M 18 Jul 2024 06:11:03.711 * DB loaded from disk: 0.000 seconds
valkey |1:M 18 Jul 2024 06:11:03.711 * Ready to accept connections tcp
valkey-cli
127.0.0.1:6379> ping
PONG
127.0.0.1:6379>
Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.