Skip to content

Workspace Location

dbeaver-devops edited this page Mar 7, 2025 · 2 revisions

Table of contents

Overview

By default, CloudBeaver stores all its files (configurations, scripts, etc.) in the/opt/cloudbeaver/ on the host machine.

Folder Description
workspace Workspace files for CloudBeaver.
drivers Auto downloaded database drivers.
conf Configuration files for CloudBeaver. Learn more

Access workspace

  1. Locate the name of the running container:

    1. Open a terminal on the host machine.
    2. Run the following command to list all running containers in the Compose project:
      docker-compose ps
  2. Identify the service name and open a shell inside the container:

    docker-compose exec <service_name> /bin/bash

    Replace <service_name> with the actual name of the service from your docker-compose.yml file.

  3. After entering the container, navigate to the workspace directory:

    cd workspace/

Workspace in Amazon S3

CloudBeaver supports storing its workspace in an AWS S3 bucket. To enable this, update your docker-compose.yml and configure the correct environment variables.

For more details on AWS S3 configuration, including setting up buckets, permissions, and best practices, see the official Amazon S3 Documentation

Update docker compose

Make sure your CloudBeaver service includes the following environment variables:

services:
  cloudbeaver:
    environment:
      - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
      - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
      - AWS_REGION=${AWS_REGION}
      - CLOUDBEAVER_WORKSPACE_LOCATION=${CLOUDBEAVER_WORKSPACE_LOCATION}

Configure S3 workspace

Define these variables in your .env file:

AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-key
AWS_REGION=your-region
CLOUDBEAVER_WORKSPACE_LOCATION=s3:///dbeaver-downloads/test_workspace

Important:

  • The CLOUDBEAVER_WORKSPACE_LOCATION path must use triple slashes (s3:///) before the bucket name. This is required for proper S3 path handling.
  • Replace dbeaver-downloads with your actual S3 bucket name.
  • test_workspace is the subfolder where CloudBeaver will store workspace data.

Limitations of using S3 Workspace

  1. No embedded databases

    • CloudBeaver cannot use embedded databases (such as H2) with an external S3-based workspace.
    • Storing an embedded database in S3 would cause severe performance issues.
  2. Separate database node required

    • To use an S3 workspace, you must configure an external database such as PostgreSQL, MySQL, or another supported DB.
    • Make sure the database is properly defined in docker-compose.yml and CLOUDBEAVER_DB_* environment variables.

For more information on CloudBeaver's database, see Server Database.

CloudBeaver Documentation

User Guide

Server configuration

CloudBeaver editions

Deployment

Development

Clone this wiki locally