What you’ll do
- Set up a custom Domino environment that includes Dash
- Create a project and configure it for app publishing
- Add and run Dash sample code that works with Domino routing
- Publish and share your app using the Domino Launchpad interface
Step 1: Set up a compute environment
First, create a Domino compute environment that includes Dash:- In Domino, go to Govern > Environments > Create Environment.
- Provide a name and description.
- Select the Domino Standard Environment as the base image.
- Click Create Environment.
-
To add Dash, click Edit Definition and append the following lines to the Dockerfile:
- Then, click Build and wait for the process to complete.
Step 2: Create a Project
Now you’ll create a project in Domino to hold your Dash app:- From Domino, go to Develop > Projects > Create Project.
- Name your Project and click Create.
- In the sidebar, go to Settings > Compute environment and select the environment you just built.
-
Go to Code > Add File, name the file
app.py, and click Save.
Step 3: Add app code
You’ll now add the Python code for your Dash app. Domino requires a few lines of setup to handle routing correctly, but you can use any Dash app layout or logic you like. This basic app confirms that Dash is working in Domino. It renders a static Plotly chart with no data dependencies or interactivity. To make your Dash app work in Domino, you must set routing using Domino environment variables and serve the app from0.0.0.0 on a specified port. Note that port selection is flexible and port 8888 is no longer required.
-
Open the
app.pyfile you created earlier. -
Paste in the following code and save the file:
Step 4: Add a startup script
Domino runs your app using a startup script. Create it like this:- In the project sidebar, go to Code > Add File.
-
Name the file
app.shand addpython app.pyto the file. - Click Save.
Step 5: Publish the App
To make the app available through a browser:- Go to Deployments > Apps & Agents in the sidebar.
- Add a title and description for your app.
- Set Permissions to Anyone can access to share the app broadly.
- Leave Make globally discoverable checked. If needed, you can disable this later.
- Click Publish. You may need to refresh your browser to view it.
Step 6: Share the App
To share your app:- Go to Deployments > Apps & Agents, and click Copy App Link.
- Open the link in an incognito or private browser window to test how the app appears to external users.
- Share the URL with collaborators.
- To browse other published apps, go to Deploy > Apps in the top nav.
Next steps
- Apps in Domino gives an overview of how apps work within the Domino ecosystem.
- Create and publish an app has instructions on creating and publishing your apps, customizing the app’s URL, and sharing apps with authorized users.
- Learn more about how apps in Domino run and what identity and permissions are used.