To install Redis, you will be prompted to include the Redis service on install. You simply just need to select it.

When you install Redis, Spin will set up a dedicated "Redis" service for you with persistent volumes so you do not lose data when updating your container.
The database uses the official Redis image. The default configuration allows us to:
environment: variables in the docker-compose.*.yml files)Since the database is running in a container, you will need to connect to the database using the container name. For example, if you have a Laravel application, you would use the following in your .env file:
REDIS_HOST=redis
REDIS_PASSWORD=redispassword
When you run spin up, the Redis container will create our database and start the Redis service.
Postgres
PostgreSQL is a powerful, open-source object-relational database system. It is a great choice for many applications and is easy to use with Spin.
SQLite
SQLite is a lightweight database that is perfect for simple application setups. This guide will walk you through how to use SQLite with Spin.