Setup
Create your compose file
Save the following as Field reference:
docker-compose.yml in your project directory:| Field | Value | Purpose |
|---|---|---|
image | piee314/radishdb:latest | Official RadishDB image from Docker Hub |
container_name | radishdb | Stable name for docker CLI commands |
ports | "6379:6379" | Expose the TCP server on the host |
volumes | radish-data:/app/aof | Persist AOF data across restarts |
restart | unless-stopped | Restart on crash or host reboot, stop only on explicit docker stop |
Start RadishDB
Pull the image and start the container in detached mode:Docker Compose creates the
radish-data named volume automatically if it does not already exist.Common commands
Start all services defined indocker-compose.yml:
Persistent volume
Theradish-data volume maps to /app/aof inside the container. RadishDB writes every mutation to /app/aof/radish.aof before applying it in memory. On restart, the engine replays this file to restore the full key-value state.
Because the volume is declared at the top level of docker-compose.yml, it is not removed by docker compose down. You must explicitly pass -v to delete it.
To inspect where Docker stores the volume on the host:
Updating to a new release
Pull the latest image and recreate the container:radish-data volume intact. Your data is not affected.