Portabase Logo
Portabase AgentDatabases

Valkey

Configuration for Valkey.

Add this database from the dashboard

Since Dashboard 1.29.0 and Agent 1.19.0, you can add this database directly from the dashboard (Add database on the agent page), without editing any file. See Adding a Database. The settings described below also apply to the dashboard form.

The agent will use valkey-cli to perform backups.

Configuration

When running portabase agent db add, select valkey as the database type.

Docker Compose Example

docker-compose.yml
services:

    db-valkey:
        image: valkey/valkey
        container_name: db-valkey
        environment:
          - ALLOW_EMPTY_PASSWORD=yes
        ports:
          - '6381:6379'
        volumes:
          - valkey-data:/data
        networks:
          - portabase

    db-valkey-auth:
        image: valkey/valkey
        container_name: db-valkey-auth
        command: >
          --requirepass "supersecurepassword"
        ports:
          - '6382:6379'
        volumes:
          - valkey-data-auth:/data
        networks:
          - portabase

    agent:
        image: portabase/agent:latest
        # ... agent configuration ...
        networks:
          - portabase

networks:
  portabase:
    external: true

volumes:
  valkey-data-auth:
  valkey-data:

Important: Localhost and Docker

If you use localhost as the host (because the agent is on the host machine and not in Docker, or via host-gateway), ensure your database is listening on all interfaces (0.0.0.0) or is accessible from the agent.

Try this: "host": "host.docker.internal" (replace host in config.json, toml) or "host": "db-valkey" (if using Docker Compose).

Last updated on

On this page