#Redis ## Deploying the Redis. To deploy Redis, you will need to complete the following steps: ### 1. Create an application with a suitable tariff. ```{eval-rst} .. admonition:: Attention :class: attention Stable work is possible at tariffs not lower than “Initial”. ``` ### 2. At the “Downloading data” stage, select “Via Git”. ![db_create](../img/db_create.png) ### 3. At the "Configuration" stage, select "db" and "redis" and click "Finish". ![mongo](../img/mongo.png) 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](https://hub.docker.com/r/redis/redis-stack-server/tags). ### 4. Specify the required environment parameters. In the "Variables" section of the project, you must set the following [environment variables](../applications/configuration/variables.md): * To add a `default` user password and store it securely, you need to click on the "Create Secret" button. In the "Name" field, enter `REDIS_ARGS`, and in the value field, enter `--requirepass `. ```{eval-rst} .. admonition:: Important :class: warning 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](https://hub.docker.com/r/redis/redis-stack-server). ![mongo](../img/redis_vars.png) ### 5. On the "Configuration" page of the application, click the "Build" button. If the configuration is empty, you must select “db” and “mongodb” again and click “apply”, and then “build”. ## Connect to the database ```{eval-rst} .. admonition:: Attention :class: 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--run-` ## Deploying Redis Insight The procedure is the same as deploying the DBMS itself: ### 1. Create an application with a suitable tariff. ```{eval-rst} .. admonition:: Attention :class: 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” ![db_create](../img/db_create.png) ### 3. At the "Configuration" stage, select "db" and "redis-insight" and click "Finish" Deployment uses [image](https://hub.docker.com/r/redislabs/redisinsight) 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](../applications/configuration/variables.md): * Variable `RIAUTHPROMPT` = `true` * RITRUSTEDORIGINS - allowed hosts to access = `https://-.amverum.io,http://localhost:8001` * Variable RIAUTHTIMER set to 30 * RIPROXYENABLE variable set to `true` ![redis-insight](../img/redis-insight.png) ### 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](../applications/configuration/network.md#free-domain-name-amverum) or [add your own](../applications/configuration/network.md#your-domain-name). ![db_create](../img/pgadmin_domain.png) ```{eval-rst} .. admonition:: Cunning :class: hint To save on consuming a project with mongo-express, we recommend pausing it after finishing work. ```