#Redis
Deploying the Redis.¶
To deploy Redis, you will need to complete the following steps:
1. Create an application with a suitable tariff.¶
Attention
Stable work is possible at tariffs not lower than “Initial”.
2. At the “Downloading data” stage, select “Via Git”.¶
3. At the «Configuration» stage, select «db» and «redis» and click «Finish».¶
The deployment uses the Docker image redis/redis-stack-server:${meta.toolchain.version}
. Parameter meta.toolchain.version
optional. If not specified, the latest redis/redis-stack-server:latest
image will be used.
Since the value of the meta.toolchain.version
parameter is a redis image tag, you can use
use a custom tag from docker hub.
4. Specify the required environment parameters.¶
In the «Variables» section of the project, you must set the following environment variables:
To add a
default
user password and store it securely, you need to click on the «Create Secret» button. In the «Name» field, enterREDIS_ARGS
, and in the value field, enter--requirepass <desired password>
.
Important
Come up with a sufficiently complex password for the database so that attackers cannot gain access to it.
If necessary, you can set other parameters supported by the image. You can learn more about these options on the image page.
Connect to the database¶
Attention
Connecting to the database is only possible from other projects created in Amverum.
To connect to the database, you must use the 6379
port and the internal domain name specified on the «Info» page in the format:
amverum-<username>-run-<transliterated-project-name>
Deploying Redis Insight¶
The procedure is the same as deploying the DBMS itself:
1. Create an application with a suitable tariff.¶
Attention
For mongo-express to work, you need a container with a tariff of at least “Initial”.
2. At the “Data Upload” stage, select “Via Git”¶
3. At the «Configuration» stage, select «db» and «redis-insight» and click «Finish»¶
Deployment uses image Docker redislabs/redisinsight:${meta.toolchain.version}
4. Specify the required environment parameters.¶
In the «Variables» section of the project, you must set the following environment variables:
Variable
RIAUTHPROMPT
=true
RITRUSTEDORIGINS - allowed hosts to access =
https://<transliterated-project-name>-<username>.amverum.io,http://localhost:8001
Variable RIAUTHTIMER set to 30
RIPROXYENABLE variable set to
true
5. On the «Configuration» page of the application, click the «Build» button¶
If the configuration is empty, you must select “db” and “redis-insight” again and click “apply”, and then “build”.
6. In the «Settings» section of the application, activate free domain name or add your own.¶
Cunning
To save on consuming a project with mongo-express, we recommend pausing it after finishing work.