Install NebulaGraph Studio¶
Download a package for your operating system and CPU architecture from GitHub Releases, or deploy the container image with Docker Compose. You do not need to download the source code or build an image.
The quick start starts NebulaGraph Studio with NebulaGraph Database Developer Edition by default, so you can connect and run your first query directly. To switch to a separate installation described here, first run ACCEPT_EULA=Y docker compose up -d --scale studio=0 in the directory containing NebulaGraph Database Developer Edition's compose.yaml. This disables the supplied Studio container and frees port 7001. For PowerShell syntax, see the PowerShell startup command instructions.
Download v5.3.2 packages¶
Choose a package for your operating system and CPU architecture, then click its filename to download it. To verify the download, also click Checksum in the same row.
| Format | Architecture | Package | SHA-256 checksum file |
|---|---|---|---|
| TAR | x86-64 | nebula-studio-5.3.2-linux-amd64.tar.gz | Checksum |
| TAR | ARM64 | nebula-studio-5.3.2-linux-arm64.tar.gz | Checksum |
| RPM | x86-64 | nebula-studio-5.3.2-1.x86_64.rpm | Checksum |
| RPM | ARM64 | nebula-studio-5.3.2-1.aarch64.rpm | Checksum |
| DEB | x86-64 | nebula-studio_5.3.2-1_amd64.deb | Checksum |
| DEB | ARM64 | nebula-studio_5.3.2-1_arm64.deb | Checksum |
TAR packages work on Linux. Use an RPM package on an RPM-based distribution or a DEB package on a DEB-based distribution. You can also download a package with wget. For example, to download the Linux x86-64 TAR package:
wget https://github.com/vesoft-inc/nebula-ng-studio/releases/download/v5.3.2/nebula-studio-5.3.2-linux-amd64.tar.gz
To download a different format or architecture, replace the filename in the command with the matching filename from the table. Text in <...> is a placeholder; replace it with the actual filename before running a command. After downloading, you can run sha256sum -c <checksum-file-name> with the matching checksum file. Port 7001 is used by default; make sure it is available. For Docker Compose, see Deploy with Docker Compose.
Install from a TAR package¶
-
Extract the downloaded TAR package in the directory where you want to install NebulaGraph Studio:
tar -xzf <downloaded-TAR-file> -
Enter the extracted directory containing
bin,etc, andscripts. Editetc/config.yamlif needed. See NebulaGraph Studio configurations. - Start the service and check its status:
sudo ./scripts/studio.service start all sudo ./scripts/studio.service status all
Install from an RPM package¶
In the directory containing the downloaded RPM package, install and start the service:
sudo rpm -i <downloaded-RPM-file>
sudo systemctl start nebula-studio.service
sudo systemctl status nebula-studio.service
You can edit /etc/nebula-studio/config.yaml after installation. Restart the service after editing it.
Install from a DEB package¶
In the directory containing the downloaded DEB package, install and start the service:
sudo dpkg -i <downloaded-DEB-file>
sudo systemctl start nebula-studio.service
sudo systemctl status nebula-studio.service
You can edit /etc/nebula-studio/config.yaml after installation. Restart the service after editing it.
Deploy with Docker Compose¶
- Install Docker and Docker Compose.
-
Create
studio-compose.yamlin your deployment directory. The Docker Hub image includes the default configuration, so no configuration file is needed:name: nebula-studio services: studio: image: vesoft/nebula-studio:5.3.2 init: true extra_hosts: - 'host.docker.internal:host-gateway' ports: - '7001:7001' # environment: # - STUDIO_TOKEN_SECRET=${STUDIO_TOKEN_SECRET} # - STUDIO_ENCRYPT_PASSPHRASE=${STUDIO_ENCRYPT_PASSPHRASE} # - STUDIO_GRAPHD_DEFAULT_HOST=${STUDIO_GRAPHD_DEFAULT_HOST} # - STUDIO_GRAPHD_DEFAULT_PORT=${STUDIO_GRAPHD_DEFAULT_PORT} # - STUDIO_HEALTHCHECK_URL=${STUDIO_HEALTHCHECK_URL} volumes: - studio-data:/app/data restart: unless-stopped stop_grace_period: 10s volumes: studio-data:When logging in to NebulaGraph Studio, enter
host.docker.internalin the Graph host field if the Graph service runs on the same machine as Docker. If it runs on a different machine, enter that machine's IP address or domain name. Enter the Graph service's port. Do not uselocalhost: it refers to the NebulaGraph Studio container. -
Start and check the service:
docker compose -f studio-compose.yaml up -d docker compose -f studio-compose.yaml psContainer data is stored in the
studio-datavolume. Recreating the container does not delete the volume.
Optional environment variables¶
The commented environment variables in the example are optional. To use one, uncomment its line and environment:, then set its value on the machine running Compose or in a .env file next to studio-compose.yaml. The names are fixed; you supply the values.
| Variable | Purpose |
|---|---|
STUDIO_TOKEN_SECRET |
Secret used to sign login tokens. |
STUDIO_ENCRYPT_PASSPHRASE |
Passphrase used to encrypt authentication information. It must be 16, 24, or 32 bytes long. |
STUDIO_GRAPHD_DEFAULT_HOST |
Default Graph service address shown on the login page. |
STUDIO_GRAPHD_DEFAULT_PORT |
Default Graph service port shown on the login page. |
STUDIO_HEALTHCHECK_URL |
Custom health check URL. |
In production, set stable values for the first two variables if login sessions must survive restarts. See NebulaGraph Studio configurations for details. After changing environment variables, run docker compose -f studio-compose.yaml up -d to apply the new values.
Customize the configuration¶
Mount a configuration file only if you need to change the defaults:
- Download
config-release.yamlfrom the repository. Save it next tostudio-compose.yamland edit it. -
Add a bind mount under the
studioservice'svolumes:volumes: - studio-data:/app/data - ./config-release.yaml:/app/etc/config-release.yaml:ro -
Run
docker compose -f studio-compose.yaml up -dto recreate the container with the mount. For later edits to the mounted file, rundocker compose -f studio-compose.yaml restart studioto apply them.
Verify the installation¶
When the service is running, open http://<machine-address>:7001 in a browser. If you changed the Docker Compose port mapping, use the new port on the machine running Docker.