Start from Cloud UI
Last updated
Was this helpful?
Last updated
Was this helpful?
Make sure you have gone through the Sign-up for Cloud Account section before continuing.
Click the Deploy -> From Docker Compose in the top-right corner of the cloud homepage to access the deployment dashboard. Once there, you need to:
Set your application name
Choose a template you want to get started or use your Docker compose file by navigate to Advanced tab. In this guide, we will use the template jupyter/base-notebook
for example.
Choose the compute resources. There are some preset plans available, or you can customize them for more flexibility. In Node & Image section, we recommend choosing dstack-dev- as guest image if you are deploying for testing. It will enable the debug feature that you can login to the virtual machine in the future.
Set the environment variables. In this guide, we will set the environment variable TOKEN
to phala
for testing. Later you will use this token to login to the notebook.
Click the Create button to start the deployment process. You will need to wait for a while as the backend sets everything up. In the meantime, you can view the CVM bootstrap logs by clicking the top-right icon in CVM card, and choose Serial Logs. Note this is the logs of confidential virtual machine, not your application logs.
After the deployment is complete, navigate through View Details → Network to see the endpoint information. You can use these endpoints to access the application if you have service serve on. You will find the endpoint is composed of application id and port. In this example, which is https://7ea38363423bf111180406f5c37c40fa48482d40-8080.dstack-prod5.phala.network, the application id is 7ea38363423bf111180406f5c37c40fa48482d40 and the port is 8080. The reason why we have a port number 8080 here is that the default port of jupyter notebook is 8888, but we configure the port mapping to 8080 in the docker compose file. You can check the docker compose file in Compose File tab and you will find ports:\n - 8080:8888 in the Compose File content.
If you access the endpoint, you will see the jupyter notebook interface. Type the token you set in the previous step and you will be able to access the jupyter notebook.
If you want to view the logs of your application, you can switch to Containers tab and click View Logs to view container logs. For example, the logs of the container jupyter are as follows:
Check the default RA Report
We provide a default Remote Attestation Report (also known as TEE proof), which is displayed in the Worker Dashboard. To view the entire report, click View Details → Attestation.
By clicking the Check Attestation button in the certificate chain section, you will be redirected to the quote explorer, where you can verify the quote. You can share this quote with anyone, as it serves as proof that your program is running inside a genuine TEE.
Now that you've deployed your first confidential application, you can:
Migrate your existing applications to TEE by following our Migration Guide
Build an AI agent in minutes with the no-code Eliza Agent Builder - check out the tutorial to get started
Explore advanced features like debugging, log management, and scaling your applications