Introduction

Supported versions:

3.2, 4.0, 5.0

Creating Redis service

At first, you need to open or create any project and click New service. You can also use Create button in the menu and choose Service. You will see a list of services which can be deployed with D2C:

Create service

Choose Redis

General settings

Create redis service - general settings

Name

The name should start with a letter and contain up to 16 characters (Latin letters, numbers, hyphen).

Each service has its unique name. Services can communicate with each other by service names (or alias-names, e.g. servicename-1 or servicename).

Version

You can choose a version for your application from a drop down list.

Network settings

Create redis service - network settings

By default, application containers are started inside a private network and have dynamically assigned local IP addresses. Apps can reference each other by service name. It does not matter on which host the app is running – all private network intercommunication is transparent for all services in your account.

Database settings

Create redis service - application settings

Password

In this field, you can specify a password for a database.

Extra settings

Create redis service - extra settings

Initial commands

Commands which are executed only once on the first container after the first deploying a service. You can use it for populate a database or migration.

Commands for installing global dependencies

Commands for installing global dependencies and modifying Docker image of your service.

Environment variables

Create service - environment variables

You can specify environment variables for your application. They can be edited after creating a service.

Persistent data volumes

Create service - persistent data volumes

D2C separates the application itself from its data. Docker volumes are used to store persistent data. Data is stored locally on the hosts. Any data which is generated by an application should be added to Persistent data volumes. All modifications outside of these directories will be deleted after restart/rebuild/redeploy of a container/service (Docker restores the original state of a container).

You can create new volumes using Add volume button. The host path by default is created automatically. You can change it but be careful. It can break the whole host.

Synchronizing

We recommend storing user generated content in cloud storage like Amazon S3 or CDN. Sometimes there is a need to support old technologies when data stores at hosts. For such cases you can use synchronization volumes between all containers. Simply check the volumes which you want to sync when creating or editing service. D2C uses Lsync for synchronization.

Configs

Create service - configs

You can add your additional config files. These files do not change after restart/rebuild/redeploy of your applications.

Specify a full path where a config should be stored and press Enter.

Hosts

Create service - hosts

Also, at this step you can create other hosts and choose them even they are not online yet (creating/setting up status). The containers will be deployed when they are ready.