Skip to main content
POST
/
databases
/
redis
Create (Redis)
curl --request POST \
  --url https://app.coolify.io/api/v1/databases/redis \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "server_uuid": "<string>",
  "project_uuid": "<string>",
  "environment_name": "<string>",
  "destination_uuid": "<string>",
  "redis_password": "<string>",
  "redis_conf": "<string>",
  "name": "<string>",
  "description": "<string>",
  "image": "<string>",
  "is_public": true,
  "public_port": 123,
  "limits_memory": "<string>",
  "limits_memory_swap": "<string>",
  "limits_memory_swappiness": 123,
  "limits_memory_reservation": "<string>",
  "limits_cpus": "<string>",
  "limits_cpuset": "<string>",
  "limits_cpu_shares": 123,
  "instant_deploy": true
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Body

application/json

Database data

server_uuid
string
required

UUID of the server

project_uuid
string
required

UUID of the project

environment_name
string
required

Name of the environment

destination_uuid
string

UUID of the destination if the server has multiple destinations

redis_password
string

Redis password

redis_conf
string

Redis conf

name
string

Name of the database

description
string

Description of the database

image
string

Docker Image of the database

is_public
boolean

Is the database public?

public_port
integer

Public port of the database

limits_memory
string

Memory limit of the database

limits_memory_swap
string

Memory swap limit of the database

limits_memory_swappiness
integer

Memory swappiness of the database

limits_memory_reservation
string

Memory reservation of the database

limits_cpus
string

CPU limit of the database

limits_cpuset
string

CPU set of the database

limits_cpu_shares
integer

CPU shares of the database

instant_deploy
boolean

Instant deploy the database

Response

Database updated

I