Configs & Secrets

Store configuration separately from your service definitions. Update values without changing your composition.

Environment Variables

Add variables as Config (visible) or Secret (encrypted). Reference them in your composition using ${VAR_NAME}.

console.kloudlite.io
PREVIEW
EnvironmentsstagingConfigs & Secrets
Kloudlite

Manage environment variables for your services

KeyValueType
API_URLhttps://api.example.comConfig
LOG_LEVELdebugConfig
DB_PASSWORD••••••••Secret
JWT_SECRET••••••••Secret

Config Files

Upload configuration files to mount into containers. Reference them using the /files/ prefix.

console.kloudlite.io
PREVIEW
EnvironmentsstagingConfigs & Secrets
Kloudlite

Upload configuration files to mount into containers

File Name
nginx.conf
app-settings.json

Usage

docker-compose.yml
services:
  api:
    image: myapp/api
    environment:
      DATABASE_URL: ${DATABASE_URL}
      JWT_SECRET: ${JWT_SECRET}

  nginx:
    image: nginx:alpine
    volumes:
      - /files/nginx.conf:/etc/nginx/nginx.conf

Variables

${VAR_NAME}

Files

/files/name:/path