Skip to content

Portainer

🚒 Deploying DMB with Portainer#

Portainer provides a user-friendly web interface for managing Docker containers and stacks. This guide walks you through deploying Debrid Media Bridge (DMB) using Portainer's stack deployment feature.


βœ… Prerequisites#

Before you begin:

  • 🐳 Docker and Portainer must be installed and running
  • 🌐 Internet access (to pull the DMB image)
  • πŸ› οΈ Mounted host directories for persistent data storage

πŸ“¦ Step-by-Step Deployment#

1. Log into Portainer#

Navigate to your Portainer instance (e.g., http://localhost:9000) and log in.


2. Navigate to Stacks#

Click on Stacks in the left sidebar.

Stacks Sidebar


3. Click "Add Stack"#

Click the + Add stack button at the top-right.

Add Stack


4. Configure the Stack#

Enter the following:

  • Name: dmb
  • Build method: Select Web editor
  • Web editor: Paste the DMB docker-compose content (see below)

Create Stack

Important

The docker-compose.yml file must be updated to include the correct environment variable values and host paths.
For example, replace /home/username/docker with the actual path on your system.


5. Deploy the Stack#

Click Deploy the stack to launch DMB.

Deploy the Stack


πŸŽ‰ That’s It!#

Once deployed, DMB will initialize and make its services available at their respective ports (e.g., DMB Frontend at :3005, API at :8000, etc.).

You can now manage DMB entirely through the DMB Frontend, or explore the Configuration docs to adjust settings as needed.


πŸ“„ Viewing Logs for DMB#

Once your stack is deployed, you can view logs for the DMB container:

  1. Navigate to Containers from the left sidebar.
  2. Click on the DMB container name.
  3. Go to the Logs tab.
  4. Logs will stream live by default. You can scroll or refresh for updates.

This is helpful for debugging service startup or checking configuration issues.


πŸ”— Attach to the Container#

To view live output or run interactive commands:

  1. From the Containers page, click on the DMB container.
  2. Click the Attach Console button (βš™οΈ icon or from the top bar).
  3. Choose a shell (e.g., sh, bash, or /venv/bin/python) and click Connect.

Use this for tasks like inspecting running processes, modifying configs, or testing tools inside the container.


πŸ’» Console Access#

You can also use the Console option to access the container shell:

  1. From the Containers tab, click on DMB.
  2. Click the Console tab.
  3. Choose the shell you wish to run.
  4. Click Connect.

Great for quick inspection or administrative tasks inside the container.