Deploy Studio¶
This article introduces how to deploy Docker-based Studio v2.x.
Prerequisites¶
Before you deploy Docker-based Studio v2.x, you must do a check of these:
- The Nebula Graph v2.x services are deployed and started. For more information, see Nebula Graph Database Manual.
!!! note
Different methods are available for you to deploy Nebula Graph. If this is your first time to use Nebula Graph, we recommend that you use Docker Compose to deploy Nebula Graph. For more information, see [Deploy Nebula Graph with Docker Compose](https://docs.nebula-graph.io/2.0/2.quick-start/2.deploy-nebula-graph-with-docker-compose/).
- On the machine where Studio v2.x will run, Docker Compose is installed and started. For more information, see Docker Compose Documentation.
Procedure¶
To deploy and start Docker-based Studio v2.x, run these commands one by one:
-
Download the configuration files for the deployment.
git clone https://github.com/vesoft-inc/nebula-web-docker.git
-
Change to the
nebula-web-docker/v2
directory.cd nebula-web-docker/v2
-
Pull the Docker image of Studio v2.x.
docker-compose pull
-
Build and start Docker-based Studio v2.x. In this command,
-d
is to run the containers in the background.docker-compose up -d
If these lines return, Docker-based Studio v2.x is deployed and started.
Creating docker_importer_1 ... done Creating docker_client_1 ... done Creating docker_web_1 ... done Creating docker_nginx_1 ... done
-
When Docker-based Studio v2.x is started, use
http://ip address:7001
to get access to Studio v2.x. !!! noteRun
ifconfig
oripconfig
to get the IP address of the machine where Docker-based Studio is running. On the machine running Docker-based Studio, you can usehttp://localhost:7001
to get access to Studio.If you can see the Config Server page on the browser, Docker-based Studio is started successfully.
Next to do¶
On the Config Server page, connect Docker-based Studio to Nebula Graph. For more information, see Connect to Nebula Graph.